Charerestics:
1) Display the message perpetually on screen
2) Display the message for a set period of time, then disappear
3) Display the message once per browser session
For demo click (here)
step 1:Download this JavaScript file which i have uploaded Download
step2:It is in rar format now open The javascript file inside RAR with any text editor(right click on the file and open with html)
Steps:3 Edit options according to your need.(already provided as comments in javascript)
Step 4:upload only topmsg.js file to any free hosting sites.I use http://www.fileave.com/
step5:now all u have to do is call the script.Insert the below script into the head section of the page you want the message to be shown. Insert the code in open space (inside the but outside of any tables or other containment tags):
<script src="http://www.yourdomain.com/topmsg.js">step6.Where http://yourdomain.com/topmsg.js represents the url pointing to where your js file is saved.
//Always-on-top message Script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, and Terms Of use, visit dynamicdrive.com
//This credit MUST stay intact for use
</script>
If u like my post ,subscribe to our feeds and recieve latest update directly in mailbox.
Subscribe to Comments
Subscribe to Posts
No comments:
Post a Comment