The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to modify body tag?
I know best practice is to add elements to the Body CSS tag provided in the main template editing section. However, I need to add an Onload javascript call for my mouseover code. How can I edit the <BODY> tag for the whole site?
Thanks. |
#2
|
|||
|
|||
The body tag is in the FORUMHOME template, if that helps...
regards, |
#3
|
||||
|
||||
You need this for all your pages, or just some? The body tag is in the main templates for most pages. You just need to edit it there (you can do a Search In Templates for "<body")
|
#4
|
|||
|
|||
I would need it in all pages. Which templates must i edit then to change all pages?
|
#5
|
||||
|
||||
You would have to edit the body tag in all of the templates for the pages. Do a Search in Templates for "<body" Alternately, you may be able to use the Replacement Variables to add it in.
|
#6
|
|||
|
|||
Style Manager > Main CSS > Additional CSS Definitions
|
#7
|
|||
|
|||
@manning, the guy is not asking for CSS, please read better.
@vbplusme, please consider learning more of the vBulletin templates before making such false reply. Lynne's info is right, but also, using an onload in the body tag may corrupt some internal functions inside vBulletin, because of the additions of a lot of ajax and javascripts in the system... you will have to check the pages you really need to insert that onload to, because if you see a $onload in the template, it means vBulletin will add its own script in the <body tag. |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
you can have other .js menu hovering effects that are not using body onload... check for integrated effects like jQuery or Mootools...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|