Roxydoll12 Web Help

 

From : HTML & Javascript Code Guide, Made by: xPhreakx

1. Submit and Reset buttons for a JavaScript form.

<input name="Submit" type="SUBMIT" value="Submit" align=middle>


<input name="Reset" type="RESET" value="Reset" align=middle> 

2. Form action
This should be before everthing in the form-
< form method=get action="where.you.want.the.form.to.be.sent">

This should be at the end of everthing in the form-
< /form>

 

3. Code for a banner- please put it on your site


<a href="http://www.roxydoll12.com/help/index.html"><img src="http://http://www.roxydoll12.com/help/images/bear.gif"border="0"></a>

 

4. Java Clock

<SCRIPT LANGUAGE="JavaScript"> <!-- Clock -- var timerID = null var timerRunning = false function stopclock(){ if(timerRunning) clearTimeout(timerID) timerRunning = false } function startclock(){ stopclock() showtime() } function showtime(){ var now = new Date() var hours = now.getHours() var minutes = now.getMinutes() var seconds = now.getSeconds() var timeValue = "" + ((hours > 12) ? hours - 12 : hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? " P.M." : " A.M." document.clock.face.value = timeValue timerID = setTimeout("showtime()",1000) timerRunning = true } //--> </SCRIPT> <BODY onLoad="startclock()"> <!--------------------------------------------------------------------------------------------> <form name="clock" onSubmit="0"> <INPUT TYPE="text" NAME="face" SIZE=11 VALUE ="Current Time"> </form>

 

5. Random Sayings

<SCRIPT LANGUAGE="JavaScript"> <!--Hide from non-JavaScript browsers function getrandom(maxValue) { rnumber = Math.round(Math.random()*(maxValue-1))+1 return rnumber } function showRandom(field) { textArray = new Array(10); textArray[1] = "Your Text"; textArray[2] = "Your Text"; textArray[3] = "Your Text"; textArray[4] = "Your Text"; textArray[5] = "Your Text"; textArray[6] = "Your Text"; textArray[7] = "Your Text"; textArray[8] = "Your Text"; textArray[9] = "Your Text"; textArray[10] = "Your Text"; field.value = textArray[getrandom(10)]; } function SetBkgndColor() { colorArray = new Array(7); colorArray[1] = "#ff0000"; colorArray[2] = "#00ff00"; colorArray[3] = "#ffff00"; colorArray[4] = "#0000ff"; colorArray[5] = "#ff00ff"; colorArray[6] = "#00ffff"; colorArray[7] = "#ffffff"; document.bgColor = colorArray[getrandom(7)]; } //--> </SCRIPT> <H1>Random Chatter</H1>

 

6. Link Button

<FORM ACTION="Your URL"><INPUT type="submit" value="Your Text"></FORM>

 

7. Name Prompt

Welcome
Your name, please enjoy your visit at Your.Web.Sites.name

<SCRIPT LANGUAGE="JavaScript"> <!-- HIDE FROM OTHER BROWSERS document.write(""); document.write(prompt("Please state your first name.","")); document.write(", please enjoy your visit at Your.Web.Sites.name.</center></P>"); //STOP HIDING FROM OTHER BROWSERS --> </SCRIPT>

 

8. Window Alert

<SCRIPT> <!-- function checkAGE(){if (!confirm ("Hello and Welcome. If this site does not load correctly reload it. By doing this you will be able to see all of the fun on this site. So please enjoy your say!! {If you already have MIE or would like to view my site anyway click OK.}")) history.go(-1);return " "} document.writeln(checkAGE()) <!--End--></SCRIPT>

or
Alert Box

<Body onLoad="alert('MESSAGE HERE')">

 

9. Radio Dot


<input type="radio" name="sex" value="m">

10. Text area


<textarea name="there discription about them self" rows="4" cols="30"></textarea>

11. Select Box


<select name="where they are from..." size="1"> <option value="Capital">Our Capital</option> <option value="Alabama">AL</option> <option value="Alaska">AK</option> </select>

12. Text Box


<input type="text" size="15" Name="other than the Us they are from">

13. Password Box


<input type="password" size"10" name="password">

14. Response Page

<INPUT NAME="ResponsePage" VALUE="The Url for responsepage" TYPE=HIDDEN>

15. Colored line

 



<hr color=blue>

 



<hr color=yellow>

 



<hr color=red>

 



<hr color=green>

16. Java Sound


<EMBED src="sound.file" height=45 width=140 autostart=true>


TABLES AND MENUS

How to make tables and menus

© 1998-2004 by Alexandra Thelin