Cybershaolin
11-01-2004, 03:59 PM
I have a strange problem. I don't know if it's related to a change that I made to my equipment lately but here I go. It's kind of long but I want to give you all the details. (English is not my first language then please, be patient with me) :)
I have a javascript integrated in a php page. In the code, the script tells the browser to show a banner depending of the screen resolution.
It used to work before I change my videocard! After the card change, the banner did not show and I could not see the script when selecting View source. The weird thing is that it does that using three different browsers, IE 6.0, Opera 7.54 and Firefox 1.0. But if I use two other computers, the banner shows and the Javascript code is in the View Source.
Then, a few days ago, after rebooting a couple of times, it started to work again. After everything was working fine, I have decided to finally upgrade to SP2 for WinXP and also upgrade my video drivers to the latest working ones.
The problem has re-appeared!!! Again, I cannot see my banner caleld by the javascript routine anymore and it's not in the view source either. But, it still works with my two other computers. I tried clearing Temp files, cache, etc and rebooted many many times, nothing fixed it.
I dont know what is going on. It seems that I tried everything to correct the situation but nothing worked.
Here is the Javascript code:
<script language="JavaScript">
<!--
ecran = screen.width;
image1="Banner+(screen.width).swf"
{
switch(screen.width)
{
case 1600:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" '
+'id="Banner" align="center"'
+'WIDTH=1231 HEIGHT=67> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=1231 HEIGHT=67 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 1280:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" '
+'id="Banner" align="center"'
+'WIDTH="1231" HEIGHT="67"> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=1231 HEIGHT=67 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 1024:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
+'id="Banner" align="center"'
+'WIDTH=986 HEIGHT=65> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=986 HEIGHT=65 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 800:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
+'id="Banner" align="center"'
+'WIDTH=755 HEIGHT=50> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=755 HEIGHT=50 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 640:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
+'id="Banner" align="center"'
+'WIDTH=595 HEIGHT=45> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=595 HEIGHT=45 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
}
}
//-->
</script>
Finally, I did not change anything in my software configuration besides upgrading XP. Firewall is disabled in XP since I use another one and did not change the config of that one either. Pop-up blocker is disabled in IE and Opera.
Can you help me out? I can't figure out what is going on.
I have a javascript integrated in a php page. In the code, the script tells the browser to show a banner depending of the screen resolution.
It used to work before I change my videocard! After the card change, the banner did not show and I could not see the script when selecting View source. The weird thing is that it does that using three different browsers, IE 6.0, Opera 7.54 and Firefox 1.0. But if I use two other computers, the banner shows and the Javascript code is in the View Source.
Then, a few days ago, after rebooting a couple of times, it started to work again. After everything was working fine, I have decided to finally upgrade to SP2 for WinXP and also upgrade my video drivers to the latest working ones.
The problem has re-appeared!!! Again, I cannot see my banner caleld by the javascript routine anymore and it's not in the view source either. But, it still works with my two other computers. I tried clearing Temp files, cache, etc and rebooted many many times, nothing fixed it.
I dont know what is going on. It seems that I tried everything to correct the situation but nothing worked.
Here is the Javascript code:
<script language="JavaScript">
<!--
ecran = screen.width;
image1="Banner+(screen.width).swf"
{
switch(screen.width)
{
case 1600:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" '
+'id="Banner" align="center"'
+'WIDTH=1231 HEIGHT=67> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=1231 HEIGHT=67 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 1280:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" '
+'id="Banner" align="center"'
+'WIDTH="1231" HEIGHT="67"> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=1231 HEIGHT=67 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 1024:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
+'id="Banner" align="center"'
+'WIDTH=986 HEIGHT=65> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=986 HEIGHT=65 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 800:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
+'id="Banner" align="center"'
+'WIDTH=755 HEIGHT=50> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=755 HEIGHT=50 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
case 640:
document.write ('<center><object '
+'codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" '
+'id="Banner" align="center"'
+'WIDTH=595 HEIGHT=45> <PARAM NAME=movie VALUE="Banner.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<param name="scale" value="scale">'
+'<EMBED src="http://www.mysite.com/forum/style_images/1/Banner.swf' +document.location.search+'" '
+'quality=high scale="scale" WIDTH=595 HEIGHT=45 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT></center>')
break;
}
}
//-->
</script>
Finally, I did not change anything in my software configuration besides upgrading XP. Firewall is disabled in XP since I use another one and did not change the config of that one either. Pop-up blocker is disabled in IE and Opera.
Can you help me out? I can't figure out what is going on.