Question..? help .. anyone !!!!!!! :)

R

Roberto

hi guys i would like if anyone around here can help me out ...i'm
looking for javaScript .. that let me do this ...i have some Smoll
grafics at my Webpage at geocities.. and i want to do this went
someone click on it ( the small grafic ) ... it will open a new window
with the full grafic ( a mean big Grafic ).. is any way to do this
......
 
K

kaeli

hi guys i would like if anyone around here can help me out ...i'm
looking for javaScript .. that let me do this ...i have some Smoll
grafics at my Webpage at geocities.. and i want to do this went
someone click on it ( the small grafic ) ... it will open a new window
with the full grafic ( a mean big Grafic ).. is any way to do this
.....

No javascript needed for a normal window.
<a href="myBigImg.jpg" target="_blank"><img src="mySmallImg.jpg"></a>

For a window with attributes, such as size, toolbars, etc...
<a href="myBigImg.jpg" target="_blank" onClick="window.open
('myBigImg.jpg','','height=300,width=300,toolbars=no');return false;">
<img src="mySmallImg.jpg"></a>

-------------------------------------------------
~kaeli~
All I ask for is the chance to prove that money
cannot make me happy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
 
R

Randell D.

Roberto said:
hi guys i would like if anyone around here can help me out ...i'm
looking for javaScript .. that let me do this ...i have some Smoll
grafics at my Webpage at geocities.. and i want to do this went
someone click on it ( the small grafic ) ... it will open a new window
with the full grafic ( a mean big Grafic ).. is any way to do this
.....

Place this javascript somewhere inside your html code...

<script language="javascript">
function newWinda(win_name,URL,width,height,scrollbars,menubar)
{
if (scrollbars==null)
{ scrollbars=0; }

if (menubar==null)
{ menubar="no" }

open( URL,win_name,
"width="+width+",height="+height+",status=0,toolbar=0,menubar="+menubar+",re
sizable=no,location=0,scrollbars="+scrollbars+"");
}
</script>


Display your images using the following HTML tags:

<img src='http://website/smallerImage.jpg' align=left border=0
onClick="newWinda('win_name','http://website/largerImage.jpg',203,152);
return false;">
 

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,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top