Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Status Bar Effect, Have your own text running in the status bar
Rating 5 V
Rohan Ramanath
post Apr 8 2006, 06:14 PM
Post #1


Newbie [ Level 2 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
uroojjj
post Aug 5 2008, 04:16 PM
Post #2


Newbie [ Level 2 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
levimage
post Aug 5 2008, 06:06 PM
Post #3


Advanced Member
Group Icon

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. tongue.gif
Go to the top of the page
 
+Quote Post
toby
post Aug 5 2008, 08:14 PM
Post #4


Premium Member
Group Icon

Group: Members
Posts: 481
Joined: 29-September 06
Member No.: 16,228



QUOTE(uroojjj @ Aug 5 2008, 05:16 PM) *
cant get the effect... i m just getting onLoad = "startBanner();" in my browser

Replace the <body> with <body onLoad="startBanner()">

QUOTE(levimage @ Aug 5 2008, 07:06 PM) *
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. tongue.gif

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.
Go to the top of the page
 
+Quote Post
levimage
post Aug 8 2008, 07:21 PM
Post #5


Advanced Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
toby
post Aug 8 2008, 08:05 PM
Post #6


Premium Member
Group Icon

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Javascript: Text To Texbox And Back To Text(2)
  2. Highlight The Active Text Input Fields.(1)
  3. Add Text To Textarea(6)
  4. Vertical Text(1)


 



- Lo-Fi Version Time is now: 30th August 2008 - 02:45 PM