|
|
|
|
![]() ![]() |
Apr 8 2006, 06:14 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 15 Joined: 8-April 06 Member No.: 12,588 |
Insert this code into the head of your page and the second script in the body tag of your page
CODE <script LANGUAGE="JavaScript"> var speed = 50 var pause = 2000 var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "This template was designed by solutions4u and for more templates please do visit www.solutions4u.co.nr" //Change var www.DesignerWiz.com bannerRunning message var currentMessage = 0 var offset = 0 function stopBanner() { if (bannerRunning) clearTimeout (timerID) bannerRunning = false } function startBanner() { stopBanner() showBanner() } function showBanner() { var text = ar[currentMessage] if (offset < text.length) { if (text.charAt(offset) == " ") offset++ var partialMessage = text.substring(0, offset + 1) window.status = partialMessage offset++ timerID = setTimeout("showBanner()", speed) bannerRunning = true } else { offset = 0 currentMessage++ if (currentMessage == ar.length) currentMessage = 0 timerID = setTimeout("showBanner()", pause) bannerRunning = true } } // --> </SCRIPT> Script number 2 CODE onLoad = "startBanner();" insert this into the body tag and it will work . For more queries please mail me at rohanramanath@gmail.com Dean :: Solutions4u Enterprises |
|
|
|
Aug 5 2008, 04:16 PM
Post
#2
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 14 Joined: 30-July 08 Member No.: 31,751 |
cant get the effect... i m just getting onLoad = "startBanner();" in my browser
|
|
|
|
Aug 5 2008, 06:06 PM
Post
#3
|
|
|
Advanced Member Group: [HOSTED] Posts: 128 Joined: 1-October 07 From: United States Member No.: 25,237 |
I'll give this a try... Might be good for a copyright notice for created work posted on a site. Do you have anything or know how to create anything that does not allow right-clicking and saving of an image or something like clicking on a thumb nail on a contact sheet (photo index of thumbnails) and when you click on a thumbnail a popup window will appear (compatible with all browsers) with an image the size of the image resolution and not allow saving page or right-clicking? An no caching on the client PC. Or if the do right click and save they just get the thumbnail rather than the original image/photo.
That would be cool and something I'd be interested in experimenting with. |
|
|
|
Aug 5 2008, 08:14 PM
Post
#4
|
|
|
Premium Member Group: Members Posts: 481 Joined: 29-September 06 Member No.: 16,228 |
cant get the effect... i m just getting onLoad = "startBanner();" in my browser Replace the <body> with <body onLoad="startBanner()"> I'll give this a try... Might be good for a copyright notice for created work posted on a site. Do you have anything or know how to create anything that does not allow right-clicking and saving of an image or something like clicking on a thumb nail on a contact sheet (photo index of thumbnails) and when you click on a thumbnail a popup window will appear (compatible with all browsers) with an image the size of the image resolution and not allow saving page or right-clicking? An no caching on the client PC. Or if the do right click and save they just get the thumbnail rather than the original image/photo. That would be cool and something I'd be interested in experimenting with. No caching on the client is impossible, to see something it must be downloaded. That fact makes all the rest impossible in any worthwhile sense. |
|
|
|
Aug 8 2008, 07:21 PM
Post
#5
|
|
|
Advanced Member Group: [HOSTED] Posts: 128 Joined: 1-October 07 From: United States Member No.: 25,237 |
QUOTE No caching on the client is impossible, to see something it must be downloaded. That fact makes all the rest impossible in any worthwhile sense. I know. Someone can just go to C:\Documents and Settings\ceba\Local Settings\Temporary Internet Files\Content.IE5\!@#$%^. I did this one time cause I wanted a picture and it worked. You can also pull up email, online database info, etc. Usually the browser has to be offline. I was curious some sites don't show this information when your offline. I was wondering how they do this. I believe it is a page showing another outside page which may or may not have frames or something. I think i query's your browser or does something having to do with the session or cookie. Do you know what I mean. |
|
|
|
Aug 8 2008, 08:05 PM
Post
#6
|
|
|
Premium Member Group: Members Posts: 481 Joined: 29-September 06 Member No.: 16,228 |
Along with cookies, the server can tell the browser not to cache it. I'm not entirely sure how this goes, but it's something like it still downloads it, but always goes online to the original website for a new version.
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 30th August 2008 - 02:45 PM |