The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Javascript OnLoad Function
Hello,
I have one javascript named george.js At the bottom of javascript i have that code Code:
var previousOnload = window.onload; window.onload = function () { alert('into george javascript'); if(previousOnload) previousOnload(); dogeorgemainfunction(); } I have another javascript named stella.js At the bottom of javascript i have that code Code:
var previousOnload = window.onload; window.onload = function () { alert('into stella javascript'); if(previousOnload) previousOnload(); dostellamainfunction(); } At my tamplate i have add: Code:
<script type="text/javascript" src="clientscript/george.js"></script> <script type="text/javascript" src="clientscript/stella.js"></script> I aslo have Code:
<body onload="$onload"> in the same template But when the page open run only the one of the two onload........ What i have to do to run the onloads from the two javacripts??? (I check only first and work perfect, then i check only second and work perfect, when i have together go only to one javascript onload) waiting your help Thanks In Advance SorentoUltimate |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|