JS + Html headers?
- Started
- Last post
- 11 Responses
- fugged0
every time you inlcude the jQuery library, it will unregister plugins. So if you include the library, then include a plugin, then include the library again, the plugin will no longer exist in the jQuery scope.
- designmachine0
Re-writing the code for you, just a couple changes ~ is your email correct?
- meffid0
Maybe I'm just using all the wrong scripts.
I need a background scaler, a shadowbox and a pagefade.
Am using:
http://www.pirolab.it/pirobox/
http://johnpatrickgiven.com/jque…
And a custom pagefade written by someone else for a project.
- meffid0
I'm just getting conflicts all over the place, and especially with pressing the back button in Safari; which is apparantly a huge know issue?
- did you remove the mutliple calls to the js lib?TheBlueOne
- I sure have.meffid
- TheBlueOne0
Um, you should check out: http://headjs.com/
- still beta and not production ready tho = buggyacescence
- Still, worth keeping an eye on..TheBlueOne
- ..besides..push the envelope. You can always charge your client for when the site goes down :)TheBlueOne
- i kid, i kid...TheBlueOne
- definitely worth watching, thanksacescence
- acescence0
<meta name="description" content="Add your sites description here">
<meta name="keywords" content="Add,your,site,keywords,here"><link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<link rel="stylesheet" type="text/css" href="../css/print.css" media="print">
<link rel="stylesheet" type="text/css" href="../css/reset.css" media="screen">
<link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="../js/pagefade.js"></script>
<script type="text/javascript" src="../js/pirobox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$().piroBox({
my_speed: 300, //animation speed
bg_alpha: 0.75, //background opacity
slideShow : 'false', // true == slideshow on, false == slideshow off
slideSpeed : 3, //slideshow
close_all : '.piro_close' // add class .piro_overlay(with comma)if you want overlay click close piroBox
});
});
</script>
<script src="../js/jquery.ez-bg-resize.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/lib.js" type="text/javascript" charset="utf-8"></script>
</head>
- acescence0
remove all but one inclusion of the jquery lib. anything that uses jquery needs to appear after jquery lib
- meffid0
Which call would you remove? I can see 3 there.
Does the order matter?
- BattleAxe0
you dont need two calls to the jquery.min.js file also check that plugins u are using work with the version of jquery you are using
- meffid0
What the F am I doing wrong?
- meffid
Is there a specific order all these should go in?
Disable one function and the other one works and vice versa. I'm so over these plugins.
<meta name="description" content="Add your sites description here">
<meta name="keywords" content="Add,your,site,keywords,here"><link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<link rel="stylesheet" type="text/css" href="../css/print.css" media="print">
<link rel="stylesheet" type="text/css" href="../css/reset.css" media="screen">
<link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="../js/pagefade.js"></script><script src="http://www.google.com/jsapi"></script>
<script>google.load("jquery", "1");</script><script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/pirobox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$().piroBox({
my_speed: 300, //animation speed
bg_alpha: 0.75, //background opacity
slideShow : 'false', // true == slideshow on, false == slideshow off
slideSpeed : 3, //slideshow
close_all : '.piro_close' // add class .piro_overlay(with comma)if you want overlay click close piroBox
});
});</script>
<script src="../js/jquery.ez-bg-resize.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/lib.js" type="text/javascript" charset="utf-8"></script></head>