日期:2014-05-16  浏览次数:20578 次

把js导入到asp.net里用做什么改动么?
我在前台设计里做好了几个.js的代码,现在要把他们导入到asp.net里,效果都没了,请问一下,导入之后用再写些什么么?还有,代码是这样写么?初学者,希望大家多多关照...嘿嘿
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Main.master.cs" Inherits="Web.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 
<head id="Head1" runat="server">
    <title>在线选课</title>
    <script src="js/easySlider1.5.js" type="text/javascript"></script>
    <script src="js/jquery.js" type="text/javascript"></script>
    <link href="Styles/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8">
// <![CDATA[
        $(document).ready(function () {
            $("#slider").easySlider({
                controlsBefore: '<p id="controls">',
                controlsAfter: '</p>',
                auto: true,
                continuous: true
            });
        });
// ]]>
</script>
<style type="text/css">
#slider { margin:0; padding:0; list-style:none; }
#slider ul,
#slider li { margin:0; padding:0; list-style:none; }
/* 
    define width and height of list item (slide)
    entire slider area will adjust according to the parameters provided here
*/
#slider li { width:906px; height:386px; overflow:hidden; }
p#controls { margin:0; position:relative; }
#prevBtn,
#nextBtn { display:block; margin:0; overflow:hidden; width:44px; height:44px; position:absolute; left:0; top:-250px; }
#nextBtn { left:862px; }
#prevBtn a { display:block; width:44px; height:44px; background:url(images/larrow.jpg) no-repeat 0 0; }
#nextBtn a { display:block; width:44px; height:44px; background:url(images/rarrow.jpg) no-repeat 0 0; }
</style>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
更多 0
------解决方案--------------------
有可能引用路径不对
------解决方案--------------------
改路径 还有 一般参数也要换成你的··
------解决方案--------------------
Chrome Developer Console里看看有什么错误。
------解决方案--------------------
可能路径不对,或者你的class,id写的不对,没获取到
------解决方案--------------------
没有引用类库,还有看看路径,元素id  class有没有变。
------解决方案-