inVision Posted January 9, 2003 Share Posted January 9, 2003 I need 2 things for my website...: 1) Someway of clicking one a url and loading 2 frames. Example: A url in the frame footer... when clicked the main and menu frame should load another page. 2) A script that checkes the users resolution and if it's under 1024 x 768 a popup should appear with a message. Can anyone help my out... make one? ty :rolleyes: Link to comment Share on other sites More sharing options...
0 twist Posted January 9, 2003 Share Posted January 9, 2003 <javascript> function switchPages(p1,p2) { window.frame1.location = p1; window.frame2.location = p2; } </javascript> then your link would be something like... <a href="javascript:void(switchPages('1.html','2.html')) 62;test</a> just gotta watch your frame names and it should be easy for yah. Link to comment Share on other sites More sharing options...
0 inVision Posted January 9, 2003 Author Share Posted January 9, 2003 This is what I made of it.. but it doesn't work :/ <script language="JavaScript" type="text/javascript"> function switchPages(p1,p2) { ?window.main.location = p1; ?window.headerbar.location = p2; } </script> <a href="javascript:void(switchPages('footer.htm','footer.htm');;;)">test</a> hmmmm the footer.htm') ;<--- should not be there but IBF adds i:s:s can't remove it, bug? Link to comment Share on other sites More sharing options...
Question
inVision
I need 2 things for my website...:
1) Someway of clicking one a url and loading 2 frames.
Example: A url in the frame footer... when clicked the main and menu frame should load another page.
2) A script that checkes the users resolution and if it's under 1024 x 768 a popup should appear with a message.
Can anyone help my out... make one? ty :rolleyes:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts