![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to have a page that has a lot of thumb nails. I want to be able to click on a thumb nail and have it open in a window but I don't want a new window opening every time I click a thumb nail unless the first window closes it self. In other words I don't want a bunch of windows open. Is this possible? |
#3
| |||
| |||
|
|
I want to have a page that has a lot of thumb nails. I want to be able to click on a thumb nail and have it open in a window but I don't want a new window opening every time I click a thumb nail unless the first window closes it self. In other words I don't want a bunch of windows open. Is this possible? -- Darrell |
#4
| |||
| |||
|
|
In other words I don't want a bunch of windows open. Is this possible? |
#5
| |||
| |||
|
|
"Darrell" <darrell (AT) machinemaster (DOT) com> wrote in message news:B8Pyb.23243$n56.23205 (AT) newsread1 (DOT) news.pas.earthlink.net... I want to have a page that has a lot of thumb nails. I want to be able to click on a thumb nail and have it open in a window but I don't want a new window opening every time I click a thumb nail unless the first window closes it self. In other words I don't want a bunch of windows open. Is this possible? -- Darrell Yes. you will need language like this: ========================== script language="JavaScript" |
|
var popup=null; function closePopUp() { if (popup && !popup.closed) popup.close(); } function popUp(url) { url = String(url.href); if (popup && !popup.closed) popup.open(url,"_self"); else popup = window.open(url,"_blank",<params>); |
|
} window.onunload = closePopUp; /script a onclick="popUp(this); return false;" href="FullImage_1.htm" img src="Thumbnail_1.gif" /a |
#6
| |||
| |||
|
|
I want to have a page that has a lot of thumb nails. I want to be able to click on a thumb nail and have it open in a window but I don't want a new window opening every time I click a thumb nail unless the first window closes it self. In other words I don't want a bunch of windows open. Is this possible? -- Darrell Yes, you can have a pop-up window or whatever to display the image, which using javascript could probably close after a certain time has elapsed - or provide a |
#7
| |||
| |||
|
|
javascript could probably close after a certain time has elapsed - or provide a "close" link on the open page displaying the image(s). a href="#" onclick="window.close();">Close window</a the above HTML code will put a link on the page and will close down the open window. |
#8
| |||
| |||
|
|
script language="JavaScript" Type has superseded language and is both backward and forward-compatible. So, script type="text/javascript" |
#9
| |||
| |||
|
|
script type="text/javascript 1.n"> will not work! So <script language="JavaScript 1.n"> is still required where defining the minimum level is required. |
![]() |
| Thread Tools | |
| Display Modes | |
| |