PDA

View Full Version : Oh my god! Please help me, my stylesheets screwed up!!!


Single Paradox
06-06-2005, 12:41 AM
Ok, I have my site on my harddrive, it is fine, earlier this morning it looked great, I just went on and IT WAS SCREWED UP!! I noticed it was the stylesheets!!! I have 2, one for IE one for Mozilla. I looked at the code in the IE one and there wasn't any! I looked at the Mozilla stylesheet and it looked like this:



var blockedReferrer = 'blockedReferrer';
NS_ActualWrite=document.write;
// Popup Blocker -->
{ }
RanPostamble=0;
NS_ActualOpen=window.open;
function NS_NullWindow(){this.window}
function nullDoc() {
this.open = NS_NullWindow;
this.write = NS_NullWindow;
this.close = NS_NullWindow;
}
function NS_NewOpen(url,nam,atr){
if((nam!='' && nam==window.name) || nam=='_top'){
return(NS_ActualOpen(url,nam,atr));}
obj=new NS_NullWindow();
obj.focus = NS_NullWindow;
obj.blur = NS_NullWindow;
obj.opener = this.window;
obj.document = new nullDoc();
return(obj);
}
function NS_NullWindow2(){this.window}
function NS_NewOpen2(url,nam,atr){
if((nam!='' && nam==window.name) || nam=='_top'){
return(NS_ActualOpen(url,nam,atr));}
return(new NS_NullWindow2());
}
function op_stop() { NS_ActualOpen2=window.open; window.open=NS_NewOpen2; }
function op_start() { window.open=NS_ActualOpen2; }
function noopen_load() {
op_stop(); op_stop(); if(zl_orig_onload)
}
function noopen_unload() { op_stop(); op_stop(); if(zl_orig_onunload) }
function postamble() {

if(!RanPostamble) {
RanPostamble=1;
zl_orig_onload = window.onload;
zl_orig_onunload = window.onunload;
window.open=NS_ActualOpen;
}
}
window.open=NS_NewOpen;
document.ignore = new Object();


Its javascript and it turned up in my stylesheet!!! I don't even know what it means!! Please help. I am running a spyware scan now!

Single Paradox
06-06-2005, 12:48 AM
Might I add that the stylesheet took me over 3 months to make :( :( :(

_Aerospace_Eng_
06-06-2005, 12:57 AM
Do you have any antivirus software or security software on your system? The fact that it showed up in your stylesheet is a bit strange.

Single Paradox
06-06-2005, 01:02 AM
Yes, I have Giant Antivirus, Zonealarm, and Ad-aware.

AaronW
06-06-2005, 01:06 AM
One of those applications is probably inserting that code to block pop-ups. Search the documentation for them and find out how to disable that feature. Norton Utilities does something similar, but you can't actually turn it off... Maybe in newer version you can though. Bleh.

Your stylesheet is fine. Check the source of your file via FTP and it should be just as you left it.

Single Paradox
06-06-2005, 01:13 AM
You don't understand... I never uploaded the stylesheet to the internet..... It was a frontpage file.

Single Paradox
06-06-2005, 01:17 AM
Why the hell would it put the code in my stylesheet? Plus I tried to run the code and there is an error.

_Aerospace_Eng_
06-06-2005, 01:18 AM
It doesn't have to be uploaded. If it was ran locally, then your security software may have still scanned for something suspicious and replaced it because it didn't like it or something. Its always good to a backup or your site. I usually have two copies of sites I do.

Single Paradox
06-06-2005, 01:19 AM
So where can I find the good version?

_Aerospace_Eng_
06-06-2005, 01:52 AM
Is it the CSS to your current site? If it is, google may have cached it and it could be there. Or start over. It shouldn't take you 3 months this time. That is a rather long time for just a stylesheet.

Scootertaj
06-06-2005, 01:59 AM
If it is the CSS you are trying to get from singleparadox.com then it is


body {
overflow : hidden;
background : #000000 url('http://www.singleparadox.com/images/bg.gif') repeat;
}
.mainTable {
height : 593px;
width : 900px;
}
img {
border : 0px none;
}
a {
text-decoration : none;
}
.topTd {
height : 30px;
width : 195px;
border-bottom : 2px solid #7c8aa4;
}
.SecondTrLeft {
width : 195px;
height : 30px;
background : url('http://www.singleparadox.com/images/MainBg.gif') repeat;
border-left : 2px solid #7c8aa4;
}
.SecondTrRight {
width : 195px;
height : 30px;
background : url('http://www.singleparadox.com/images/MainBg.gif') repeat;
border-right : 2px solid #7c8aa4;
}
.mainDiv {
overflow : auto;
height : 420px;
width : 850px;
}
.mainTd {
height : 430px;
width : 900px;
background : url('http://www.singleparadox.com/images/MainBg.gif') repeat;
border-right : 2px solid #7c8aa4;
border-left : 2px solid #7c8aa4;
border-bottom : 2px solid #7c8aa4;
text-align : center;
}
.mainLegend {
background : #0a0a43;
border : 2px solid #7c8aa4;
width : 500px;
text-align : center;
}
legend {
color : #ffffff;
font-weight : bold;
}
.Username {
background : #0a0a43 url('http://www.singleparadox.com/images/Username2.gif') repeat fixed;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
width : 120px;
height : 20px;
padding-left : 5px;
}
.User2 {
background : #0a0a43 url('http://www.singleparadox.com/images/inputBg2.gif') repeat fixed;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
width : 120px;
height : 20px;
padding-left : 5px;
}
.User3 {
background : #0a0a43;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
width : 120px;
height : 20px;
padding-left : 5px;
}
.Password {
background : #0a0a43 url('http://www.singleparadox.com/images/Password2.gif') repeat fixed;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
width : 120px;
height : 20px;
padding-left : 5px;
}
.Pass2 {
background : #0a0a43 url('http://www.singleparadox.com/images/inputBg2.gif') repeat fixed;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
width : 120px;
height : 20px;
padding-left : 5px;
}
.Pass3 {
background : #0a0a43;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
width : 120px;
height : 20px;
padding-left : 5px;
}
.Submit {
background : #0a0a43;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
height : 20px;
padding-right : 15px;
}
.Submit2 {
background : url('http://www.singleparadox.com/images/SubmitBg.gif') repeat;
border : 1px solid #7c8aa4;
color : #ffffff;
font-weight : bold;
height : 20px;
padding-right : 15px;
}
.fieldset {
text-align : left;
padding-left : 15px;
padding-right : 15px;
padding-top : 0;
padding-bottom : 15px;
margin : 0;
border : 1px solid #7c8aa4;
width : 600px;
background : #0a0a43;
}
.TimeFont {
font-weight : bold;
background : #0a0a43;
}
.LinkTd {
height : 30px;
width : 510px;
font-weight : bold;
text-align : center;
background : #42475a url('http://www.singleparadox.com/images/LinkBg.gif') no-repeat 50% 50%;
}
.nav {
color : #ffffff;
padding-left : 15px;
padding-right : 15px;
position : relative;
top : -5px;
}
.nav2 {
border-bottom : 2px solid #7c8aa4;
background : #0a0a43;
padding-left : 15px;
padding-right : 15px;
position : relative;
top : -5px;
}
.bottomTd {
height : 73px;
width : 900px;
background : url('http://www.singleparadox.com/images/Bottom_img.gif') no-repeat 50% 100%;
}
.bottomLeftTd {
height : 73px;
width : 416px;
padding-left : 55px;
}
.secondTable {
width : 900px;
height : 73px;
}
.blankTd {
width : 115px;
background : none;
height : 73px;
border : 0px none;
}
.bottomRightTd {
width : 395px;
height : 73px;
padding-left : 90px;
}

Single Paradox
06-06-2005, 02:00 AM
How could google cache it!! My site wasn't uploaded. The stylesheet took so long because it has all the heights, widths, stucture, images, color, and so on and so forth.

Scootertaj
06-06-2005, 02:03 AM
So I am guessing that that isn't the right CSS?

Single Paradox
06-06-2005, 02:55 AM
No that was the old stylesheet... I've been working on a new one... Thanks for your help though.

Kurashu
06-06-2005, 04:45 AM
It was a frontpage file.

There's your problem. =P

AaronW
06-06-2005, 12:46 PM
Open the file in Notepad. It should be fine. Opening it in a browser will probably show it "broken" again.

Regardless, search your application's documentation to find out how to disable that "feature". I'd uninstall all that garbage anyway. Most security applications are as annoying as the crap they try to protect you from.

oracleguy
06-06-2005, 11:22 PM
Yeah but they do protect you from looking like a complete idiot when you pass an email virus on because you aren't running any anti-virus software.

Were you running the pages through a web server on your machine or where you just opening your files up? The former would be the safer way; because if you are using the latter if some weird program replaced the code to "protect" you it'd most likely modify the actual file instead of a cached copy.

Single Paradox
06-06-2005, 11:35 PM
Thanks a lot guys.... I think I'm gunna have to rewrite the code... Oh well... Thanks a lot for the suggestions.