Click to See Complete Forum and Search --> : popup won't link


belvialinda
06-20-2003, 11:23 AM
Hi,

I have an index page that is generating a popup The user should be able to click on the image in the popup, that page should load in place of the index page, and the popup should close. Currently, nothing is happening when user clicks on popup.

Also, the popup image generated is supposed to be a random one. This is working okay, but the approach seems a little code-intensive. Can this be simplified using arrays of images and urls???

Here's the url to the test index page: http://www.ottertechnology.com/index_pop.html

Here's the popup page:
http://www.ottertechnology.com/popup4.html

Thanks for any and all help in advance! :)

belvialinda

Vladdy
06-20-2003, 11:39 AM
I do not get any popup at all....

eddie_ch
06-20-2003, 12:06 PM
you would need to name the window itself in order to change it's current page! eg. window.name = win ; and then on the onclick eventhandler in the popup's image, target win's location to elsewhere... this tutorial would be very helpful:

http://www.webreference.com/js/tutorial1/index.html

belvialinda
06-20-2003, 04:42 PM
Vladdy,

I think maybe you clicked on the bottom link, which is the popup. Try the first link. But at any rate, I did get it working...


eddie_ch,

Thanks for your help. I looked through the tutorial, but didn't find exactly my issue... And I was a little lost, too. :S But I kept trying things and, by hook or by crook, it is working. Yay!

Thanks to both of you for your assistance. Very much appreciated. :D

belvialinda