Script Type problems

brownnips

New Member
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>
 

conor

New Member
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

New Member
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
 
Top