Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
To contact staff directly or to report bugs, please use Special:Contact.
I'm trying to make a small template of wich content will be move in the first heading (the title) of the page.
I'm using jQuery to get both elements like this :
var h1 = $('h1.firstHeading'); var lien = $('#wiki_officiel');
The div to be move has the proper ID. What give me the error is this :
if(lien == null) return; lien.style.display = "block"; lien.style.borderWidth = "1px"; lien.style.borderStyle = "solid"; lien.style.borderColor = "white";
I'm blocked on that error so i dont know yet if what i'm using to move the div is the correct code.
Here the entire function :
function LienWikiOfficiel() { var h1 = $('h1.firstHeading'); var lien = $('#wiki_officiel'); if(lien == null) return; lien.style.display = "block"; lien.style.borderWidth = "1px"; lien.style.borderStyle = "solid"; lien.style.borderColor = "white"; h1.innerHTML = lien.HTML + h1.innerHTML; }
I'm really good with JS it seems. — TulipVorlax 16:40, September 7, 2009 (UTC)