vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Trying to find a way to reference the Body Background value... (https://vborg.vbsupport.ru/showthread.php?t=89581)

KW802 08-01-2004 04:20 AM

Trying to find a way to reference the Body Background value...
 
I'm stuck on a problem and I'm hoping some of you template gurus can help me out.

Here's my problem summarized: In a table that is inside of a table I have a TD element that I want to have the same background as the "Body Background" value for the style.

I've already concirmed over on VB.com that there is no phrase that corresponds to the value of the "Body Background" value box as it is implemented via the CSS that is called from global.php so the easiest solution isn't available to me.

Any thoughts on how else I could reference that value without having to hard-code my template?

Thanks,
Kevin

Zachery 08-01-2004 04:40 AM

Why not just use class="body" ?

KW802 08-01-2004 04:54 AM

Quote:

Originally Posted by Zachery
Why not just use class="body" ?

HHhmm...... doesn't seem to work; I'm getting the page defaults instead. Would it still work if the table that the TD element is in is using a class tag?

Zachery 08-01-2004 07:03 AM

No, if it is already assigned a class, you need to use the style tag.

Natch 08-02-2004 12:47 AM

You can also do it client-side using the DOM... you would need to do it in javascript, by assigning an id tag to the table cell in question, then changing that id using
Code:

id.background = document.body.background
or something similar...

OK - your TD needs to read
HTML Code:

<td id="bodied" ...
and then you will need to write a javascript which is called in the onload for that page - I would need more info on where in your vB you are using this to be able to advise you further.

When you say "same background" do you mean background image, or background color, or the whole background definition?


All times are GMT. The time now is 11:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00938 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete