Fixed background within a block

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Fixed background within a block
zebra
CZ Newbie
zebra has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 05, 2004
0.00 posts per day
Posts: 19
Points: 4,524
   
Hello, I use you guys alot or i should say i study from your pages alot.
I need a little help here. Ive read and read and read and just cant find what im looking for.

I want to have a static background image within a message or a block.

now the style sheet for the theme has the blocks filled in with the full background i want.
i have created a message with a table and some text. know behind the text i want the static no repeat fixed image centered.

i know this java script works below for html but i know it wont work in the message within nuke.

SCRIPT language="JavaScript1.2"
if (document.all)
document.body.style.cssText="background:black url(whatever image.jpg) no-repeat fixed center center"
/SCRIPT

(i left out the <> tags that encase script cause you know when i go to post this nuke gives me that dumb page i dont like java script. so imagine the above script with the brackets)

could someone help me with this script so that it will work within nuke.
Thanks icon_redface.gif



Back to top Reply with quote
#2   re: Fixed background within a block
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
If you want the background to just show behind that particular message, you can add the style directly into the table tag that you created for that message.

<table align="center" border="0" cellpadding="0" cellspacing="0" width="XXX" style="background:black url(whatever image.jpg) no-repeat fixed center center;">


Or, you can create a class and add it to your styles.css file and apply it to the table tag.
.myfixedbg {background:black url(whatever image.jpg) no-repeat fixed center center;}

<table align="center" border="0" cellpadding="0" cellspacing="0" width="XXX" class="myfixedbg">



Back to top Reply with quote
#3   re: Fixed background within a block
zebra
CZ Newbie
zebra has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 05, 2004
0.00 posts per day
Posts: 19
Points: 4,524
   
Thanks,
it worked great. You guys here at codewiz ahve helped me learn alot within php nuke.
Right ON headbang.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum