Welcome! Log In Create A New Profile

Advanced

Javascript - Scrolling status bar

Posted by phpart 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Javascript - Scrolling status bar
September 18, 2008 10:11PM
Hi there peeps

I'm having some trouble with my scrolling stats bar exercise. Please could someone help me out.

I use Internet Explorer 7

I have created an index.html file that calls on my .js file. Just like calling a regular css file. Here is the code.

//Plain text in browser status bar
//window.defaultStatus = "Welcome to my assignment 2 page"
//var msg = "And this is the second text line"

//Rotating text in status bar
var msg = "Come visit me in the zoo"
function showMsg()
{
window.status = msg
msg = msg.string (1, msg.length) + msg.substring(0,1)
scrollmsgid = setTimeout ("showMsg()",150)
}

The first two commented out functions (Bold Text) work perfectly but the following ones don't work at all. Any suggestions?

www.phpart.co.za
www.busstech.com
Re: Javascript - Scrolling status bar
September 18, 2008 10:23PM
I uploaded the page in question. So feel free to download the files and check them on your side.

HERE IS THE LINK

www.phpart.co.za
www.busstech.com
TvD
Re: Javascript - Scrolling status bar
September 19, 2008 07:55AM
Download the JavaScript editor from here:
http://www.c-point.com/javascript_editor.php

Use it to step line by line through your code until you find the mistake - first use it to check for syntax errors.

Otherwise search the Internet and Web Design forums from 2003 for "scroll" - this comes up year after year and many good solutions have been offered see also

http://osprey.unisa.ac.za/phorum/read.php?193,48670,48718#msg-48718
http://osprey.unisa.ac.za/phorum/read.php?10,41216
http://osprey.unisa.ac.za/phorum/read.php?193,48670,48670#msg-48670
Re: Javascript - Scrolling status bar
September 19, 2008 11:23AM
you don't call the showMsg() function from anywhere in your html
Re: Javascript - Scrolling status bar
September 20, 2008 09:40AM
Thanks guys for the help!
Randal, got it now thanks

www.phpart.co.za
www.busstech.com
Sorry, only registered users may post in this forum.

Click here to login