Click to See Complete Forum and Search --> : Image tweaks using php and javascript


perrohunter
03-02-2006, 10:14 PM
Hi.

I was wondering how to make an image to change without reloading the website :bemused:

for example, when a user clicks a link on my frameset, i want my inframe to switch site (easy) and sametime change the image of a image inside the code (hard)

any idea ? :o ;)

Roger Ramjet
03-03-2006, 12:07 AM
Well it's going to be javascript to do this. Try AJAX (http://www.adaptivepath.com/publications/essays/archives/000385.php)
also known as XMLHttpRequestor (http://developer.apple.com/internet/webcontent/xmlhttpreq.html)

Drakla
03-03-2006, 01:39 AM
You might not even need Ajax you could change the src of an image with javascript, but it really depends on how deep this thing is.