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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with linking to a new picture WITHOUT FRAMES

Status
Not open for further replies.

jdubz

Technical User
Apr 28, 2002
70
0
0
is there a way to have the links (they are just graphics for now) on this page


where the navigation on the left swaps out the picture on the right.

i can set up a frames page, but i honestly suck at frame pages... and is it possible to get a frame page to sit in the middle of a browser?

any help will be welcome.
 
There are several ways to accomplish what you want.

Javascript to dynamically change the src attribute of an img tag, or to change the background attribute of a DIV.

An [blue]iframe[/blue] and targeted links.

Server-side scripting to load an image in a defined area etc...

I guess the easiest way would be the [blue]iframe[/blue]

Something like this will do what you want:

Code:
<a href="image_location.jpg" target="iframe_name">click here</a>


Then place an iframe where your current picture is like this:


<iframe name="iframe_name" width="250" height="250" src="defaultimage.jpg"></iframe>


When you click on the link, the image will load into the iframe.

Hope this helps.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
thank you for the tip, will give it a shot!

best,
jw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top