Illustrate how a URL can be referenced : Hyper Link : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Hyper Link »

 

Illustrate how a URL can be referenced




<html>
<body>
<basefont size=4>
<img src="internal-gopher-menu">&nbsp;Click
<script language="JavaScript">
<!--
var dateToday = new Date();
var day       = dateToday.getDay();
var linkText  = "here";
var aUrl= "";
if (day == 0) { aUrl="http://www.navioo.com/wrongfolder/sunday.htm"}
if (day == 1) { aUrl="http://www.navioo.com/wrongfolder/monday.htm"}
if (day == 2) { aUrl="http://www.navioo.com/wrongfolder/tuesday.htm"}
if (day == 3) { aUrl="http://www.navioo.com/wrongfolder/wednesday.htm"}
if (day == 4) { aUrl="http://www.navioo.com/wrongfolder/thursday.htm"}
if (day == 5) { aUrl="http://www.navioo.com/wrongfolder/friday.htm"}
if (day == 6) { aUrl="http://www.navioo.com/wrongfolder/saturday.htm"}
document.write(linkText.link(aUrl));
//-->
</script>
for today's news.<p>
</body>
</html>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Hyper Link