TriNetre - Archive for February 16, 2004
(no longer updated)
February 16, 2004
quicksub and XHTML Strict
[Software]
@ 11:37 AM
quickSub "is a Javascript function that adds intelligence to the XML feed button on your web page. Just roll your mouse over the example above, and you'll be instantly greeted by one-click subscription links to the most popular aggregators."
Great, but the default installation would render your page XHTML Strict invalid! So, if you want to use quickSub as well as keep the page valid XHTML Strict, try these steps:
- Place the javascript code mentioned in step 2 of installation into the "head" section of your page and rewrite it as
<script type="text/javascript" src="quicksub.js"> <!-- quickSub (c) Jason Brome --> </script> - Again, in step 2 of installation, change "onMouseOut" and "onMouseMove" to all small letters i.e. "onmouseout" and "onmousemove"
[Update] You might also want to reconsider where to place the code
<div id="quickSub" style="position:absolute; visibility:hidden; z-index:1000;" onmouseout="return timeqs();" onmousemove="return delayqs();"></div>
because it can mess up with your page rendering. In my case, when I put this piece of code just after the <body> tag, my logo (that you see on the top) got cut off in IE. On first guess it looks like "position: relative;" gets rendered badly in IE with that piece of code. I shifted the code after my logo's divs and it seems to work fine now, hopefully.
