Go Back   Serif Software Forums > Design and Publishing > WebPlus

Notices

WebPlus Questions about using WebPlus for website design

 
 
Thread Tools Display Modes
Old 21st January 2011, 07:45 PM   #1
sidawy
Member
 
Join Date: May 2010
Posts: 42
sidawy is on a distinguished road
Default how change web site Background Based On time

how change web site Background Based On time
sidawy is offline  
Old 21st January 2011, 07:51 PM   #2
Jim B.
Master
 
Jim B.'s Avatar
 
Join Date: Feb 2009
Posts: 10,709
Jim B. will become famous soon enough
Default Re: how change web site Background Based On time

Quote:
Originally Posted by sidawy View Post
how change web site Background Based On time
There is nothing built-in to WebPlus that will automatically change the background based on time.

But you can probably find a time-based script at SourceForce.net or JavaScriptKit.com or DynamicDrive.com or similar places.
__________________
Jim B. :> )

Picture taking. It's a snap!

Good photography. It's complicated.
Jim B. is offline  
Old 21st January 2011, 08:17 PM   #3
sidawy
Member
 
Join Date: May 2010
Posts: 42
sidawy is on a distinguished road
Default Re: how change web site Background Based On time

thanks Jim but can you the script and tell me how to use it
sidawy is offline  
Old 21st January 2011, 08:19 PM   #4
mjh
The one and only mjh
 
mjh's Avatar
 
Join Date: Feb 2009
Location: Michigan USA
Posts: 74,753
mjh has nothing more to prove (nirvana)mjh has nothing more to prove (nirvana)mjh has nothing more to prove (nirvana)mjh has nothing more to prove (nirvana)mjh has nothing more to prove (nirvana)mjh has nothing more to prove (nirvana)mjh has nothing more to prove (nirvana)
Default Re: how change web site Background Based On time

Quote:
Originally Posted by sidawy View Post
thanks Jim but can you the script and tell me how to use it
You need to find a script and try to install it yourself. Then, if you have problems, post here and maybe someone will be able to help you.

Otherwise, wait a while for some others to respond to your request.
__________________
---------------
T9900, 8 GB RAM, 512 vidram, WIN 7 Ult 64-bit - Chrome
mjh is offline  
Old 21st January 2011, 08:52 PM   #5
Mick
Expert
 
Mick's Avatar
 
Join Date: Feb 2009
Location: United Kingdom, Staffordshire
Posts: 7,286
Mick has much to be proud ofMick has much to be proud ofMick has much to be proud of
Default Re: how change web site Background Based On time

Here is one such code that should change the bg image based on night/day time

<script type="text/javascript" language="JavaScript">
<!--
var date = new Date();
var time = date.getHours();
if (time >= 6 && time < 18) {document.body.background = 'DayImage.jpg'}
else {document.body.background = 'NightImage.jpg'}
-->
</script>
__________________
Hope This Information Helped Have Fun
WebPlus Live Support - Gimboo Design Tips - KEN's Tips & Tricks - DOND's Tips & Tricks - Neil J's Serif Addons - Naz's Video Tuts - WebPlus How To
Intel Core i7 980X 3.60GHz - 8Gig DDR3 PC3 - Windows 7 Ultimate - WPX6 14.0.2.25 - DPX5 12.0.4.27 - PPX6 16.0.2.27
Mick is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebPlus X4: Time to Boogie with the Background! R3BORN WebPlus 4 30th October 2010 07:45 AM
WebPlus X2: changing background color of quick time Danzil WebPlus 0 12th October 2009 10:18 PM
WebPlus X2 for review based site? Flexi WebPlus 6 8th June 2009 05:58 PM
Playing music continuously so it doesn't stop and restart each time you change pages... Heather WebPlus 14 21st May 2006 04:50 AM


All times are GMT +1. The time now is 09:00 PM.