我试图在ektron中调用google-jquery和一些内联脚本/样式标记。我是CMS的新手,这甚至有可能吗?代码如下:Ektron中的内联脚本标记/ JQuery
<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>
我对你正在尝试做的有点不清楚。它看起来像你已经成功包括jQuery并正在使用它。 是你的问题如何使用上面的代码在Ektron中创建切换手风琴? 要使用上面的代码,只需将其放置在您的ASPX模板中,它将像任何webforms应用程序一样运行。 – MaxPRafferty