Click to See Complete Forum and Search --> : pop up windows in a linkset
shawnypoo
02-25-2003, 09:31 PM
Me again :-) anyways, I have over 100- pictures uploaded on my website and i was wonder..now that i have them as a slideshow, how can i make the links on the main page to the page with the slideshow pop up when the link is clicked..
dont get me wrong, i knwo the code and all..but one problem, i have linsets and mouse over menus in which contains the link i was to have clicked when the window popsup
for a better idea go to:
www.angelfire.com/pro/bostonredsox
mouse over the spring training pics...the 3-4 links in that pop up menu are the ones i want to have the window.open command...
how do i set that up?
Change your <a href...> to something like this:
<a href="your.htm" onClick="window.open('this.href','name','width=400,height=300')">
shawnypoo
02-25-2003, 11:37 PM
this.href? isnt it supposed to be the name of the page u want opening up too? like...the page i want to pop up is springbatting2003.html so wouldnt it be
<a href="springbatting2003.html" onClick="window.open('springbatting2003.html','SpringBatting2003','width=400,height=300')">
yes? no?
this.href will return your link value...If you'd rather hard code the values in, that will, of course, work as well....
shawnypoo
02-25-2003, 11:46 PM
linkset[4]='<div class="menuitems"><a href="springbatting2003.html" onClick="window.open('this.href','springbatting2003','width=400,height=300')">Batting Practice</a></div>'
that is what i have...is that correct? if it is, then it is messing up my code.
when i have that in, my pop up menu no longer work...
Perhaps try it without the '' around the this.href, like so:
linkset[4]='<div class="menuitems"><a href="springbatting2003.html" onClick="window.open(this.href,'springbatting2003','width=400,height=300')">Batting Practice</a></div>'
shawnypoo
02-25-2003, 11:56 PM
nope, menus still dont appear...i dont understand why its not working?
are you capable of doing pop up windows from a pop up menu?
this is the entire linkset
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springbatting2003.html">Batting Practice</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springpitching2003.html">Pitching Practice</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springfielding2003.html">Fielding Practice</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springmisc2003.html">Miscellaneous Spring</a></div>'
if you go to www.angelfire.com/pro/bostonredsox you can view the source maybe and see whats wrong?
shawnypoo
02-25-2003, 11:57 PM
i am unsure, i saw this on the htmlgoodies and didnt see in the part about pop up call function(or whatever the technical name im trying to do) that you would need a
<script etc etc>
i do not have one for this, if i do need one, where would i place it and the closing one too..?
Here is the code that you need:
linkset[4]='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springbatting2003.html" onClick="window.open(this.href,\'springbatting2003\',\'width=400,height=300\');return false;">Batting Practice</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springpitching2003.html" onClick="window.open(this.href,\'springbatting2003\',\'width=400,height=300\');return false;">Pitching Practice</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springfielding2003.html" onClick="window.open(this.href,\'springbatting2003\',\'width=400,height=300\');return false;">Fielding Practice</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.angelfire.com/pro/bostonredsox/springmisc2003.html" onClick="window.open(this.href,\'springbatting2003\',\'width=400,height=300\');return false;">Miscellaneous Spring</a></div>'Minus those extra line breaks...
shawnypoo
02-26-2003, 12:10 AM
pop up menus still dont appear anymore...
Try this, it works fine for me in IE6...
shawnypoo
02-26-2003, 12:19 AM
thank you. its working now, but i dont understand why it wasnt..i noticed you added some "/" in there..
Yes, the extra \ were needed to escape the original ' 's that you had... ;)