A couple of problems, any help appreciated !
1 – I’d like to move this kind of rollover info into a separate (presumably) text or html file and call it into the page from there:
<td><a href=“http://etc” onMouseOut=“MM_swapImgRestore();FW_startTimeout();” onMouseOver=“window.FW_showMenu(window.fw_menu_0,0,164);MM_swapImage(‘a’,’’,‘one/two/three.gif’,1);” ><img name=“a1” src=“one/two/three-1.gif” width=“120” height=“26” border=“0”></a></td>
Just can’t think of the way to go about doing this.
2 – Also, I’m crap with Javascript and so used a freebie ‘todays-the-day’ script. However, I’d like the option of changing the font, colour and text size. I’m pretty sure it’s only a few lines…can someone help me out, pleaseeeee ?
Here’s the code if it’s of any help:
*<!-- Begin
dayName = new Array("", “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”)
monName = new Array(“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”)
now = new Date
// End →
<!-- Begin
var strDay;
if ((now.getDate() == 1) || (now.getDate() != 11) && (now.getDate() % 10 == 1)) // Correction for 11th and 1st/21st/31st
strDay = "st ";
else if ((now.getDate() == 2) || (now.getDate() != 12) && (now.getDate() % 10 == 2)) // Correction for 12th and 2nd/22nd/32nd
strDay = "nd ";
else if ((now.getDate() == 3) || (now.getDate() != 13) && (now.getDate() % 10 == 3)) // Correction for 13th and 3rd/23rd/33rd
strDay = "rd ";
else
strDay = "th ";
document.write(
dayName[now.getDay()]
+
" the "
+
now.getDate()
+
strDay
+
"of "
+
monName[now.getMonth()]
+
", "
+
now.getFullYear()
)
// End →
*
How would you go about that ?
Cheers !