|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi
I'm trying to write a webpage that has a tracker code within it, but whenever I try it, I get an error message about invalid character. This works when I try the addslashes function. I've put escape characters in my code but I still get errors....can you please? echo "<script type=\"text/javascript\"><!-- EXs=screen;EXw=EXs.width;navigator.appName!=\"Nets cape\"? EXb=EXs.colorDepth:EXb=EXs.pixelDepth; navigator.javaEnabled()==1?EXjv=\"y\":EXjv=\"n\"; EXd=document;EXw?\"\":EXw=\"na\";EXb?\"\":EXb=\"na \"; location.protocol=="https:"?EXprot="https":EXprot= "http"; top.document.referrer?EXref=top.document.referrer: EXref=EXd.referrer; EXd.write(\"<img src=\"+EXprot+\"://nht-2.extreme-dm.com\", \"/n2.g?login=paullee&url=\"+escape(document.URL) +\"& v=&\", \"jv=\"+EXjv+\"&j=y&srw=\"+EXw+\"&srb= \"+EXb+\"&\", \"l=\"+escape(EXref)+\" height=1 width=1>");//--> </script><noscript><div id=\"nneXTReMe\"><img height=\"1\" width=\"1\" alt=\"\" src=\"http://nht-2.extreme-dm.com/n2.g? login=paullee&url=nojs&j=n&jv= n& v=\" /></div></noscript>" The Javascript is yukky, but it works. Have I forgotten to include an opening/closing " or \ ? Thanks Paul |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Feb 5, 7:04 am, "Paul.Lee.1...@gmail.com" <Paul.Lee.
1...@googlemail.com> wrote: > Hi > > I'm trying to write a webpage that has a tracker code within it, but > whenever I try it, I get an error message about invalid character. > This works when I try the addslashes function. I've put escape > characters in my code but I still get errors....can you please? > > echo "<script type=\"text/javascript\"><!-- > EXs=screen;EXw=EXs.width;navigator.appName!=\"Nets cape\"? > EXb=EXs.colorDepth:EXb=EXs.pixelDepth; > navigator.javaEnabled()==1?EXjv=\"y\":EXjv=\"n\"; > EXd=document;EXw?\"\":EXw=\"na\";EXb?\"\":EXb=\"na \"; > location.protocol=="https:"?EXprot="https":EXprot= "http"; > top.document.referrer?EXref=top.document.referrer: EXref=EXd.referrer; > EXd.write(\"<img src=\"+EXprot+\"://nht-2.extreme-dm.com\", > \"/n2.g?login=paullee&url=\"+escape(document.URL) +\"& v=&> \", > \"jv=\"+EXjv+\"&j=y&srw=\"+EXw+\"&srb= \"+EXb+\"&\", > \"l=\"+escape(EXref)+\" height=1 width=1>");//--> > </script><noscript><div id=\"nneXTReMe\"><img height=\"1\" width=\"1\" > alt=\"\" > src=\"http://nht-2.extreme-dm.com/n2.g? > login=paullee&url=nojs&j=n&jv= > n& v=\" />> </div></noscript>" > > The Javascript is yukky, but it works. Have I forgotten to include an > opening/closing " or \ ? > > Thanks > > Paul Try removing <!-- and //--> in the echo statement. |
|
![]() |
| Outils de la discussion | |
|
|