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 !!
Code:$("#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 :
../popin/popin.png ==> the image that i'm clicking to show the fancybox !HTML Code:<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;">
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![]()



Reply With Quote

Bookmarks