OT: Weird Javascript Code
Moderator: General Moderators
OT: Weird Javascript Code
Hi guys, I wrote OT for off-topic so don't get mad at me.
What the hell does this line of code mean ?
<script language="JavaScript" src="/homepage/toolbar.js"></script>
Here is why I ask. I use <BODY LEFTMARGIN=0 TOPMARGIN=0> then make a <TABLE WIDTH=100%> to make a different color area at the top of the screen. Now when I load the page there is about a 16 pixel gap on the right hand side, but when I hit Refresh it spans the whole horizontal area like it should.
This problem drove me crazy. I looked at some source from the Microsoft site and found that if I add that little script above it works fine without having to Refresh.
What the hell is going on ? Also, does anyone know of a really good JavaScript forum of the same caliber as this PHP forum ?
Thanks guys.
What the hell does this line of code mean ?
<script language="JavaScript" src="/homepage/toolbar.js"></script>
Here is why I ask. I use <BODY LEFTMARGIN=0 TOPMARGIN=0> then make a <TABLE WIDTH=100%> to make a different color area at the top of the screen. Now when I load the page there is about a 16 pixel gap on the right hand side, but when I hit Refresh it spans the whole horizontal area like it should.
This problem drove me crazy. I looked at some source from the Microsoft site and found that if I add that little script above it works fine without having to Refresh.
What the hell is going on ? Also, does anyone know of a really good JavaScript forum of the same caliber as this PHP forum ?
Thanks guys.
the javascript is just stored in a file called toolbar.js rather than placed between the script tags
http://forums.devshed.com/forumdisplay.php?forumid=1
http://forums.devshed.com/forumdisplay.php?forumid=1
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
<style type="text/css">
<!--
body{margin:0;}
-->
</style>- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
CSS would be much easier on you. But, if you want two different input tags to have different colors, then I would do...
Code: Select all
<input type="text" name="jdsf" style="background: COLOR;">