thumbnail open new window

S

steve

Hi

I have some thumbnails on that page with some JavaScript to open a new
windows in the different size if visitors click on the thumbnails.
But the problem is if you click the thumbnail before the page to
completely load up the page just stop loading and begin to load the
new window only.
Why is that and how can I fix it?

Thanks
 
G

Grant Wagner

steve said:
Hi

I have some thumbnails on that page with some JavaScript to open a new
windows in the different size if visitors click on the thumbnails.
But the problem is if you click the thumbnail before the page to
completely load up the page just stop loading and begin to load the
new window only.
Why is that and how can I fix it?

Thanks

Stop using:

<a href="javascript:...">

and start using:

<a href="#" onclick="...;return false;">

<url: http://jibbering.com/faq/#FAQ4_24 />

--
| Grant Wagner <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-developer/upgrade_2.html
 
S

steve

Hi
Stop using:

<a href="javascript:...">

and start using:

<a href="#" onclick="...;return false;">

Thanks it work perfectly

Did I make it the right way

<a href="#" onClick="openPopImg('pic1.jpg', 'title, '245',
'450');return false;" onMouseOver="................
 
S

steve

Did I make it the right way
No. It breaks when Javascript is not available. Try:

<a href="pic1.jpg" ...

you have got a good point there, thanks
Also, you are missing the closing quote after title, but before the
comma.

yes thanks
I'm assuming that there's an openPopImg() function available, of
course.

yes there is
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top