|
|
#1 |
|
New Member
![]() Join Date: Jan 2012
Posts: 2
|
Hey, I'm creating a website and I have a script type which is a panel slider and other script types for a light box. Depending one where I put my script type lines only one plugin will work. If i put the first three script type lines last, it will work but if i put it first only the slider will work. Is there a way to initiate both features at the same time. Please and thank you
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="dropdown-nav.css" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/style1.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/Liberation_Sans.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('span');
Cufon.replace('li');
Cufon.replace('h1');
Cufon.replace('p');
</script>
</html>
|
|
|
|
|
|
#2 |
|
Gold Member
![]() Join Date: Oct 2008
Location: Ireland
Posts: 349
|
try this:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/Liberation_Sans.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('span');
Cufon.replace('li');
Cufon.replace('h1');
Cufon.replace('p');
</script>
__________________
Conor |
|
|
|
|
|
#3 |
|
New Member
![]() Join Date: Jan 2012
Posts: 2
|
neither of them work now
|
|
|
|
|
|
#4 |
|
Gold Member
![]() Join Date: Oct 2008
Location: Ireland
Posts: 349
|
you could try installing firebug for firefox, or if you use chrome then no need to install anything. Left click on the page and click inspect element then go to the console tab, enable it, reload the page and it should give some sort of javascript error. Post the error here and it'll give a better idea of why the script isn't working
__________________
Conor |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|