astralaaron Posted January 28, 2010 Share Posted January 28, 2010 ok I have a function that fires when the page loads, ( <body onload= etc.. ) this function pattern matches a #hash on a URL and opens a module as the screen snaps down to that area of the web site.It works perfect when you click a link from a different page. It does an onload= and fires the function, snaps the screen, opens the module.the problem is on the same page as the modules, at the top, there are links like this: <a href="#hash"></a> that don't fire an onload= when it snaps the screen, if you refresh after you click the link - the module opens.I have tried putting an onclick=" " to make the function fire immediately when you click the link but the screen snapping down to the hash seems to interupt it maybe? does anyone have an idea how I can make the function fire? if onload doesn't work... Link to comment Share on other sites More sharing options...
Skemcin Posted January 28, 2010 Share Posted January 28, 2010 Please post either some code or at least a link to what you are describing so we can play with it to understand better the entire situation. Link to comment Share on other sites More sharing options...
astralaaron Posted January 28, 2010 Author Share Posted January 28, 2010 for anyone who is stuck with this, the window.onscroll = scrollEvent; saved me here. when the screen snaps u can make it fire. Link to comment Share on other sites More sharing options...
Skemcin Posted January 28, 2010 Share Posted January 28, 2010 Sounds like a good solution, you could try onmousemove also. Link to comment Share on other sites More sharing options...
astralaaron Posted January 28, 2010 Author Share Posted January 28, 2010 Sounds like a good solution, you could try onmousemove also.oh nice thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.