Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading images into a new window - automatically

Status
Not open for further replies.

whoknows361

Technical User
Sep 22, 2005
228
US
hey guys. much thanks in advance.

I have a flash file that when a user clicks on an image I want the image to appear in a new window but much bigger (these much bigger images will be new pics - not the same used in the flash file). I am currently using the following when a user clicks on an image:

on (release) {
getURL ("javascript:NewWindow=window.open('/headwearpics/whitepaisley.htm','newWin','width=900,height=350,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

this simply opens a new window using the identified htm page. However, instead of making hundreds of individual htm pages for each pic - is there a way where I can simply have the pics in my ftp site & have some kind of javascript, or server-side, or something that will simply open a new window (with certain stipulations, such as window size & background color, etc) & load the pic in it. So that way I only have to use one htm file & not hundreds?

I hope this makes sense.
If this is possible - what do I need to use (code type) - how would I go about this?

Thanks
Jonathan
 
yes oldnewbie I tried that, just loading the .jpg.
but the problem is

1) the image is not centered
2) the background is not black
3) and I want to load a line of text centered under the image (ie. if they click on blue shoes - I want a line of text under the image to say "blue shoes".

is this possible with a javascript call?

thanks in advance

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top