Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > Javascript / Java Applets

Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-08-2009, 08:29 AM
Domishte Domishte is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Default background with javascript on website in my hosting account

I think with javascript may be created wonderful things about construction and management of websites. Does anybody know how is possible to set up background colour on website from my hosting account using javascript?
Reply With Quote
  #2  
Old 09-08-2009, 09:05 AM
iceman1's Avatar
iceman1 iceman1 is offline
Senior Member
 
Join Date: Jan 2009
Posts: 100
Default Re: background with javascript on website in my hosting account

If you don't plan to use CSS, then JavaScript is one of the way to set up web page parameters.
HTML Code:
<script type="text/javascript">
window.onload = function() {
document.body.style.background = 'red';
document.body.style.color = 'white';
} 
</script>
background = 'red' - in this line is determine the color of the page background
color = 'white' - on the next line is selected a system font color
Reply With Quote
Reply

Tags
account, background, hosting, javascript, website

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On

Forum Jump


All times are GMT -4. The time now is 04:12 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.