the cute
05-11-2012, 10:45 AM
Hello
i'm having trouble to get a javascript work on other page than the front page !
i have a page (wordpress) :
www.wesbite.com/scenario ==> with some javascript code
the code is for the fancybox :here is what i have !!
$("#popin").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'none',
'transitionOut' : 'none'
});
that worked on the front page of the wordpress website ,as that code is in the header.php of the theme !
and to call that #popin i use :
<a id="popin " href="#popin "><img src="../popin/popin.png" alt="" /></a>
<div style="display: none;">
<div id="popin" style="width: 350px; height: 140px; overflow: auto;">
../popin/popin.png ==> the image that i'm clicking to show the fancybox !
i duplicate that post in a nother page -www.website.com/scenarios/
but when i click on the image /popin/popin.png nothing happens except the link bar turns to :
www.website.com/scenarios/#popin
******
so i'm wondering if i could get that popin code in javascript to be recognized in teh whole website and how to call it that way !
thank you in advance for your Help !
i'm desperate :(
i'm having trouble to get a javascript work on other page than the front page !
i have a page (wordpress) :
www.wesbite.com/scenario ==> with some javascript code
the code is for the fancybox :here is what i have !!
$("#popin").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'none',
'transitionOut' : 'none'
});
that worked on the front page of the wordpress website ,as that code is in the header.php of the theme !
and to call that #popin i use :
<a id="popin " href="#popin "><img src="../popin/popin.png" alt="" /></a>
<div style="display: none;">
<div id="popin" style="width: 350px; height: 140px; overflow: auto;">
../popin/popin.png ==> the image that i'm clicking to show the fancybox !
i duplicate that post in a nother page -www.website.com/scenarios/
but when i click on the image /popin/popin.png nothing happens except the link bar turns to :
www.website.com/scenarios/#popin
******
so i'm wondering if i could get that popin code in javascript to be recognized in teh whole website and how to call it that way !
thank you in advance for your Help !
i'm desperate :(