The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Try:
Code:
var el = document.getElementById(hcur + 'b'); alert(el); Code:
alert(el.src); |
#12
|
|||
|
|||
Yes that was the problem. I assumed JS was smart enough to not kill itself over a element not existing, guess not.
Working code: Code:
function switchheader(id){ if ( hcur != id ){ document.getElementById(hcur).style.display = 'none'; document.getElementById(id).style.display = ''; if (hcur == 'logo'){ document.getElementById('logo2').style.display = 'none';} else document.getElementById(hcur + 'b').src = '/styles/7M-v1/new/hb_' + hcur + '.png'; if (id == 'logo'){ document.getElementById('logo2').style.display = '';} else document.getElementById(id + 'b').src = '/styles/7M-v1/new/hbalt_' + id + '.png'; hcur = id; } } Thank you! Now onto the world of cookies. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|