jwk811 Posted May 24, 2009 Share Posted May 24, 2009 there are two big functions on my page that wont work together. ones a slideshow the other opens a picture when hovering over something. i dunno how i could do the onload trick with functions what do i do Link to comment https://forums.phpfreaks.com/topic/159434-solved-two-scripts-on-same-page/ Share on other sites More sharing options...
Ken2k7 Posted May 24, 2009 Share Posted May 24, 2009 In what way do they not work together? Did you write those functions? I would check to see if the variables are unique to both functions. JavaScript can be a pain where variables have global scope. Link to comment https://forums.phpfreaks.com/topic/159434-solved-two-scripts-on-same-page/#findComment-841046 Share on other sites More sharing options...
jwk811 Posted May 24, 2009 Author Share Posted May 24, 2009 they are huge i got them from a website so they must have some same variables but is there anyway to separate them? Link to comment https://forums.phpfreaks.com/topic/159434-solved-two-scripts-on-same-page/#findComment-841296 Share on other sites More sharing options...
jwk811 Posted May 24, 2009 Author Share Posted May 24, 2009 i got it to work by just using an iframe for the script Link to comment https://forums.phpfreaks.com/topic/159434-solved-two-scripts-on-same-page/#findComment-841299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.