TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Iframes and Image Swaps

Page: 1 Reply
Aug 8th 2002#63787 Report
Member since: May 21st 2002
Posts: 14
I have a page that I am working on. It has a main_area ( iframe ) and a graphic on the left that is not an iframe. Does anyone know how to change the graphic on the left when a link is selected?


http://www.uptown24.com/client1/index2.html

take a look, thanks.
Adolfo
Reply with Quote Reply
Aug 8th 2002#63807 Report
Member since: May 21st 2002
Posts: 537
put the pic in an iframe too. that's all I can suggest.
Reply with Quote Reply
Aug 9th 2002#63951 Report
Member since: May 21st 2002
Posts: 14
ok, like on your site, when I click on portfolio in the square on the left, how would you make the images on the left change?
Reply with Quote Reply
Aug 9th 2002#63987 Report
Member since: May 21st 2002
Posts: 537
not totally clear on what you mean.

when you click on portfolio how do the words at the top appear?

if it's the what you mean then the words up top are in a small rectangular iframe. The reason you cant see it at the beginning is because it starts out as a blank white page.

When you click on the portfolio, it brings up the portfolio links page in that small rectangular iframe. The code for that is simple.

[a href="portlinks.html" TARGET="Links"]

Links is the name of the small rectangle iframe. portlinks.html is the address of the links page that goes in the Links iframe.


if that's not what you mean then sorry.
Reply with Quote Reply
Aug 12th 2002#64313 Report
Member since: Feb 15th 2002
Posts: 84
snivlem, I think what he's asking is if you click on portfolio in the navigation box, how would you then make one of the graphics, e.g. the headphones, flowers, man, etc change (assuming they weren't links)

My only suggestion would be to make the navigation in flash, or add some type of rollover effect via ImageReady.
Reply with Quote Reply
Aug 12th 2002#64336 Report
Member since: Mar 24th 2002
Posts: 3114
*reads really fast through this thread*

...to make images change on events use a simple JS;

function changeImage(paavorocks)
{
document.imageName.src=paavorocks
}

..and then call it upon the event;

[img src="gat.gif" onClick=changeImage("nameOfNewImage.jpg")]

...or something. I´m tired...
Reply with Quote Reply
Aug 12th 2002#64337 Report
Member since: Mar 24th 2002
Posts: 3114
..oh, and name the image that will be changed, of course..
[img src="thisImageWillChangeOnFunction.jpg" name="imageName"]
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum