Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Can Anyone Help?

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

marcus.alves

Established Member
Impact
0
Hi,

What I'm after is if anyone knows how to do the following:

I want something to open within the website, eg: when you click on an image to enlarge it, instead of loading a new page, the image opens up within the current page.

Sounds really easy and simple, and probably is, but I really cant think how to do it.

Can anyone help?

Cheers
Marcus
:)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
<!-- Paste this code into the BODY section of your HTML document -->

<img src="yourimage.jpg" width="150" height="200" onclick="this.src='yourimage.jpg';this.height=400;this.width=300" ondblclick="this.src='yourimage.jpg';this.height=200;this.width=150">


something like this is simple and should work
 
0
•••
It worked after I removed the space in the width.
I can use this myself.
 
0
•••
slipondajimmy said:
<!-- Paste this code into the BODY section of your HTML document -->

<img src="yourimage.jpg" width="150" height="200" onclick="this.src='yourimage.jpg';this.height=400;this.width=300" ondblclick="this.src='yourimage.jpg';this.height=200;this.width=150">


something like this is simple and should work

Cheers M8 but not quite what I was looking for, i want the image that you click to stay the same size, but open up larger in a different location on the same page
 
0
•••
marcus.alves said:
Cheers M8 but not quite what I was looking for, i want the image that you click to stay the same size, but open up larger in a different location on the same page

How can it "stay the same size" but "open up larger"?
 
0
•••
Gene said:
How can it "stay the same size" but "open up larger"?

Basically, you know on websites when you've got like a photographer's portfolio, and at the bottom or down the side of the page you have small thumbnails of his work, and as you click on one, it brings the image up larger in the middle of the page. For example:

http://www.thisisventure.co.uk/gallery/?WSCam=Box+2+yellow+link&WSEvt=Box+2+yellow+link

This one is done in flash by the looks of it, but can you do it outside of flash?
 
0
•••
0
•••
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back