我正在尝试调用 google-jquery 和 ektron 中的一些内联脚本/样式标签。我是 CMS 的新手,这可能吗?这是代码:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#accordion-js').find('h2').click(function(){
$(this).next().slideToggle();
}).next().hide();
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#accordion-js').find('h2').toggle(function(){
$(this).css("background-color","#04396D");
$(this).css("background-image","url('101_up.png')");
$(this).css("background-position", "center right");
$(this).css("background-repeat","no-repeat");
$(this).css("color","#FFF");
},
function(){
$(this).css("background-color","#f4f4f4");
$(this).css("background-image","url('101_down.png')");
$(this).css("background-position", "center right");
$(this).css("background-repeat","no-repeat");
$(this).css("color","#777");
});
});
</script>