What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Refresh Image Button Needed (refreshes image only, not whole page) [fixed]

Refresh Image Button Needed (refreshes image only, not whole page) [fixed]
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Refresh Image Button Needed (refreshes image only, not whole page)
if the image is an <img> tag, something like this might work:

code:
<input onclick="getimage()">

<script>
function getimage() {
   document.getElementById(picture id name).src = 'path to random image generator php file'
}
</script>


If its a css background image, use something like this:
code:
<script>
function getimage() {
   document.getElementById(picture id name).className = 'path to random image php file'
}
</script>


<script>
function getimage() {
   document.body.style.backgroundImage = 'url(path to random image php file)'
}
</script>



This post was edited on 04-21-2007 at 07:11 PM by MeEtc.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
04-21-2007 06:52 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Refresh Image Button Needed (refreshes image only, not whole page) [fixed] - by prashker on 04-21-2007 at 06:39 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by MeEtc on 04-21-2007 at 06:52 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by Nathan on 04-21-2007 at 06:56 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by MeEtc on 04-21-2007 at 06:57 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by Nathan on 04-21-2007 at 07:03 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by prashker on 04-21-2007 at 07:05 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by MeEtc on 04-21-2007 at 07:05 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by vaccination on 04-21-2007 at 07:06 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by prashker on 04-21-2007 at 07:07 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by andrewdodd13 on 04-21-2007 at 07:37 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by MeEtc on 04-21-2007 at 07:37 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by prashker on 04-21-2007 at 07:38 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by andrewdodd13 on 04-21-2007 at 07:45 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by vaccination on 04-21-2007 at 07:48 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by andrewdodd13 on 04-21-2007 at 07:52 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by MeEtc on 04-21-2007 at 07:59 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by vaccination on 04-21-2007 at 08:07 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by prashker on 04-21-2007 at 08:12 PM
RE: RE: Refresh Image Button Needed (refreshes image only, not whole page) - by andrewdodd13 on 04-21-2007 at 08:52 PM
RE: Refresh Image Button Needed (refreshes image only, not whole page) - by prashker on 04-21-2007 at 08:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On