|
Tom
|
 |
« on: March 14, 2004, 03:46:37 PM » |
|
Hey Richard, I think you need to learn a little more fun things :lol and you'll enjoy this. Check this out http://javascript.internet.com/miscellaneous/shake-me.html, and see if you can get it placed on one of your advanced pages. Then, change the text on the button to something like 'Secret Button', then when they click it, trying to see your 'secret', things will be a shakin :eeek Lots more cut and paste Javascripts here also http://javascript.internet.com.
|
|
|
|
|
Logged
|
 <<10 points if you can name this 'character' From the opening scenes of Animal House... "Knowledge Is Good"
|
|
|
|
Richard
Guest
|
 |
« Reply #1 on: March 21, 2004, 01:52:47 AM » |
|
I am indeed intrigued by the "Shake" Javascript idea. Clarify one thing for me please, what is being referred to where it says install in the "HEAD" of your page i.e. <!-- TWO STEPS TO INSTALL SHAKE ME!: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> and <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <div align="center"> <input type=button onClick="shake(2)" value="Shake Me!"> </div> <p><center> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href=" http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 3.89 KB -->
|
|
|
|
|
Logged
|
|
|
|
|
Gail
|
 |
« Reply #2 on: March 21, 2004, 02:02:44 AM » |
|
Hi Richard,
Your HTML Document has a Head section and Body section. This is how a formal HTML Document would look:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <head> <title>Untitled</title> </head>
<body>
</body> </html>
The code that you paste into the HEAD would go between <head> and </head> (likely below the title).
Hope this helps.
Gail
|
|
|
|
|
Logged
|
Practice random acts of kindness. 
|
|
|
|
Gail
|
 |
« Reply #3 on: March 21, 2004, 02:10:35 AM » |
|
Hi Again,
In case you are wondering Richard, "head" can be written as <HEAD> or <head>; any tags can be written in lower or upper case in HTML. The reason I choose to write <head> is because the future of the web is likely XHTML. While HTML tags can be written either way, XHTML must be written in lowercase. Incidentally, if you do not always write the code in a consistent manner, HTML Kit will do this for you.
Gail
|
|
|
|
|
Logged
|
Practice random acts of kindness. 
|
|
|
|
Richard
Guest
|
 |
« Reply #4 on: March 21, 2004, 03:50:55 PM » |
|
Thanks Gail, that helps a lot, sorta common sense if I'd a thought about it a little more, but it was late and I was tired.
|
|
|
|
|
Logged
|
|
|
|
|
Gail
|
 |
« Reply #5 on: March 21, 2004, 05:22:49 PM » |
|
Hi Richard, You are welcome. We all have those times when we are too tired to think. I seem to have them quite often - at least that is my excuse. Gail
|
|
|
|
|
Logged
|
Practice random acts of kindness. 
|
|
|
|
Richard
Guest
|
 |
« Reply #6 on: March 21, 2004, 05:51:31 PM » |
|
Well, guys, I got the Javascript program on my Page9.html - but it will not shake as it is supposed to. Whatever have I done wrong? I did take out some language that appeared as script on screen - ----------------------------------------------------------------------------------- <p><center> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href=" http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 3.89 KB --> ----------------------------------------------------------------------------------- I took out everything but <p><center><font face="arial, helvitica" size"-2"</font></center>>p> The button is there and I changed title of button but when I click it, nuttin. Nuttin before I changed title of button too. H E L P : : :
|
|
|
|
|
Logged
|
|
|
|
|
Lorraine
|
 |
« Reply #7 on: March 21, 2004, 08:40:52 PM » |
|
Richard, where did you get this "Shake" coding??? I tried it out, and only could get the button also, I just thought I would check it out from where you got it from..
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Lorraine
|
 |
« Reply #9 on: March 21, 2004, 10:04:25 PM » |
|
I found it Richard, and was playing with it, for the last half HR. but I couldn't get it to work at all, I just added the code between the <body>...</body>and the two buttons came up, but when I added the code between the <head>....</head> nothing showed up, and that's the part that makes the buttons shake, I think. Aw geez, I have to go, and try it again
|
|
|
|
|
Logged
|
|
|
|
|
Tom
|
 |
« Reply #10 on: March 22, 2004, 01:48:42 AM » |
|
I've been trying Richard, and I cannot get the Javascript code to work through the website builder. The code in the 'head' will not save. I cannot explain it. I went direct to the server and wrote the code to the page, then it worked. I then came back and edited the page with the site builder, and after saving it the code in the 'head' disappeared again. Someday when I have nothing to do I will try to understand it...... I made this page, from the server, http://www.tomowa.com/my_website/Richard/shake.html, and it works. But if you open it and save from your site builder it will cease working.
|
|
|
|
|
Logged
|
 <<10 points if you can name this 'character' From the opening scenes of Animal House... "Knowledge Is Good"
|
|
|
|
Lorraine
|
 |
« Reply #11 on: March 22, 2004, 09:45:56 AM » |
|
:rofl :rofl :rofl TOM!!! I thought only the button is suppose to shake, NOT!!! the whole page :rofl :rofl :rofl
|
|
|
|
|
Logged
|
|
|
|
|
Richard
Guest
|
 |
« Reply #12 on: March 22, 2004, 11:18:41 AM » |
|
Strange thing aboput this, Tom, is that I did get the code to "not self delete" (for want of a better term) but it would never work. Also when I used the button on the site you referred to it, of course, would work but would not stop shaking until a mouse click. then the page, and the PC would freeze for several seconds. I let it shake for three minutes and it never stopped. There is a link where you can get the code e-mailed to you which is what I did. I can forward it to you via e-mail if you want. This whole thing just seems really strange. May I presume that if, and when you get this debacle straightened out, you will post back with a fresh and "new" link> Ah, well, such is life. Thanks all. :  :  :kybrd :kybrd :kybrd :cry
|
|
|
|
|
Logged
|
|
|
|
|