Ezilon.com - Target Your Audience, be Seen in Your Region

How can I....

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

He has: 12 posts

Joined: Dec 2003

I think it is possible, but can I make it so when someone clicks my link, and the link is to a pic, I want to make it so when the pic shows up, it is not a whole page, it is a small box that surrounds the pic. Is that possible without Javascript?

He has: 12 posts

Joined: Dec 2003

Ok, I want the first one, I know about making a box around an image, I could do that with the border tag. Umm, what javascript would it be to get the window to be the same size as the pic?

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

Yes, it's possible without JavaScript. I know a few people did some tricky swapping with CSS. I don't have the details though.

He has: 12 posts

Joined: Dec 2003

If u do come across that coding, can u post it here, even if u come upon the javascript, could u post it here, I appreciate all the help you guyz give.

AYYASH's picture

He has: 10 posts

Joined: Jan 2004

Here is the code you are looking for (no need for java script):

This code works with graphics not text. I'll try to look for another code that works with text either.

Greg K's picture
Moderator

He has: 1,676 posts

Joined: Nov 2003

the onClick part *is* calling javascript. Plus he'll need the javascript that has the function "MM_openBrWindow()" in it. (looks like one of Macromedia's canned functions). Lastly, just to clarify if you want to use it, the main part that does the opening is the onClick portion, the use of an image map is not needed. (put the onClick part in a normal type tag.

-Greg

AYYASH's picture

He has: 10 posts

Joined: Jan 2004

Thanks Greg. I was wrong. He also needs to put this in the to make the link works:

<script language=JavaScript>

</script>

He has: 12 posts

Joined: Dec 2003

So the stuff right abouve my post, I will need to put that all in the head tag? Btw, thnx so much for this

mjs416's picture

They have: 127 posts

Joined: Dec 2003

JEFF_HARDY wrote: So the stuff right abouve my post, I will need to put that all in the head tag? Btw, thnx so much for this

I'll send you an example when I get a second, Spidey. There are many variables you can set with the window that pops open. Visible address bar? Re-sizeable? There is a certain syntax to it too.

PM me with your email.

__________________________________
SkrekLAN Technologies
www.skreklan.com

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

zerocattle.com/examples/popUp.html

You can either set the width and height to the same size as the image (works in some browsers, but not most, or you can make an .html for each image that puts the image on a page without borders.

You can also write the JavaScript in a way to generate the page itself, as someone has done on these forums, you might want to search for it.

AYYASH's picture

He has: 10 posts

Joined: Jan 2004

Thanks to Suzanne for the popup link. It's really useful.

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

You're welcome. It should work for XHTML 1.0 strict as well as down to HTML 4.01 Transitional. Use it in good health. Smiling

Subscribe to this feed: Syndicate content