View Single Post
  #3  
Old 07-08-2010, 11:14 AM
innoshare innoshare is offline
Junior Member
GB Newbie
 
Join Date: Jul 2010
Posts: 6
Default Example above with JQuery Goodness

You could actually do this all in JavaScript with no additional editing of the HTML file(s) beyond the JavaScript include using JQuery. Just include a recent version of the JQuery library (you can download from http://jquery.com/) and add the following to the JavaScript above:

Code:
$.noConflict();
jQuery(document).ready(function(){
    jQuery("body").attr('background','pic191.jpg');
});
jQuery.noConflict();
This way, you'll automatically get the background image on all pages that include your JavaScript file.
__________________
Atlanta Web Design | Georgia Web Design
Reply With Quote