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:
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: Refresh Image Button Needed (refreshes image only, not whole page)
Okay okay, you're going to want to use code similar to what MeEtc posted, but there's a bit of a problem see:

<body style="backgroundImage = 'url(image.jpg)'">

For that to work properly, you'd need to supply the page with a list of images, or supply a way of using AJAX to retrieve the location of another image.

It'd be simpler to have a file image.php which gives you the random image. So it'd be backgroundImage = 'url(image.php)'. And image.php would be like

code:
// generate location to random image
header ("Location: <pathtorandomimage>");

.

Then, you'd have (wherever you wanted the refresh button to go):
<input type="submit" onClick="getimage(); return 0;" /> and use MeEtc's script to get image.php again.
[Image: AndrewsStyle.png]
04-21-2007 07:45 PM
Profile E-Mail 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