Captain Niobe
Full Member
Beta Tester I believe in the blue dragon
"Morpheus believes we will win this war. He makes other people believe it. That's why we need him."
Posts: 768
inherit
Beta Tester I believe in the blue dragon
36870
0
Nov 19, 2012 15:13:04 GMT -8
Captain Niobe
"Morpheus believes we will win this war. He makes other people believe it. That's why we need him."
768
February 2005
captainniobe
|
Post by Captain Niobe on Dec 27, 2009 23:51:53 GMT -8
I think this is the right board, if not, please feel free to move it... I'm trying to set up a remote JS code (yes, it's for a PB site, but it's not the PB site I want help on ), normally I have no trouble setting remote JS codes - I'm a fan...! lol... Anyways, the Global header portion of it isn't displaying, the CoffeeCup built-in (IE-based) shows an error... The footer portion of the code displays as it should, but not the header portion (typically, if there's an error in the remote source, none of it shows)... Thinking it was because I was testing on a blank page, I put it on a PB site, but the header portion still refuses to show for me... It should move the WT under the ads and add a table around the forum, and does when it's in the header, but I apprently did something wrong... O.O (Seriously, that's not surprising, I know next to nothing about JS ;D) Can I ask someone to take a look at the JS file for me and tell me what I did wrong? skins.niobe132004.net/pb/eternity/eragon/blue/cde/global_header.jsHow it's supposed to look is here: cneragonbltest.proboards.com, testing for the JS scripts is here: nptest2.proboards.com. Thank you in advance - I'm stumped... P.S.: For any staff that happen upon this, remember I'm asking for what I did wrong in the external JS, not the forum! LOL!!! ;D
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Dec 28, 2009 9:18:11 GMT -8
document.write('<table cellpadding='0' cellspacing='0' width='750' align='center' class='top'>'); document.write('<tr>'); document.write('<td class='wrapper'>');
document.write('<div id="wel"></div>');You need to check your statements there. If you're using document.write('text here'); then you have to escape any single quotes in 'text here' with a backslash. eg: document.write('<table cellpadding=\'0\' cellspacing=\'0\' width=\'750\' align=\'center\' class=\'top\'>');Just check the other statements!
|
|
Captain Niobe
Full Member
Beta Tester I believe in the blue dragon
"Morpheus believes we will win this war. He makes other people believe it. That's why we need him."
Posts: 768
inherit
Beta Tester I believe in the blue dragon
36870
0
Nov 19, 2012 15:13:04 GMT -8
Captain Niobe
"Morpheus believes we will win this war. He makes other people believe it. That's why we need him."
768
February 2005
captainniobe
|
Post by Captain Niobe on Dec 28, 2009 9:36:08 GMT -8
*headdesk* OMG - how could I be so thick? I remember thinking briefly about that when I was putting the files together and hosting them, but something must have distracted me - I'm usually pretty careful... *headbangs keyboard*
Honey, thank you so much for pointing out my obvious mistake... I swear, some days I need a butt-kicking... lol...
Very muchly appreciated... I owe you one... ;D
*runs off to change single quotes to doubles* (I didn't write that table, that came with the template O.O)
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Dec 28, 2009 12:11:50 GMT -8
You're welcome! ;D
|
|