A couple of JS issues
by "Dackral Phillips" <htmlhacker(at)hotmail.com>
|
Date: |
Wed, 22 Mar 2000 17:09:58 CST |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Hello Javascripters,
I have a small dilemma and a question of curiosity to ask.
As to my dilemma, I have a function to change the browser status bar which
works wonderfully in IE, Netscrap, on the other hand, acts like it is
completely ignoring the function all together. Instead of displaying the
text I want, it displays the URL to which the links point. I have two sets
of pages, so I can rewrite the script to accomidate NN. The script is
currently located in a separate js file.
Here's the script:
function StatusMsg(msgStr)
{
window.status = msgStr;
document.returnValue = true;
}
And here is an example of how it is called:
<.A HREF="board.html"
OnMouseOver="reveal('Board'); document.pawnA.src= pawn2.src;
StatusMsg('The Board'); return document.returnValue;"
OnMouseOut="reveal('Board'); document.pawnA.src= pawn1.src;
StatusMsg(msg1); return document.returnValue;">
I have it included with other functions: reveal(), shows a dHTML layer, and
works, the other code, as you can imagine, is for an image swap. Is there
something that I need to do to get this to work in NN? I've noticed that
sometimes, I have to change the order of the functions to get them to work
right, but it seems not to work for this particular problem. Oh, and I use
a web based browser, so I included the period as not to mess up the server.
Now to my non-pressing curiosity issue. I was experimenting with moving
DIVs around in IE and NN, and have the script working right, but I'm
wondering, if you move a DIV so far can you make it stop with some attribute
like document.objectname.stop for NN and objectname.style.stop in IE? I
tried those but the browser ignored them. I also tried putting () on the
end of stop, and while that worked, it pulled up an error. I guess I have
to write an actual stop() method, but I'm not sure how to do this. I'm not
using this in any pages right now, I'm just playing around, but I would like
to know how this is done. Thanks. BTW, I'm on the digest version of the
list so a personal response would be nice.
Dack
010001000101001101010000010001000101001101010000
1 <>< Dackral Phillips <>< 1
0 http://www.redrival.com/dack 0
0 http://www.auburn.edu/~phillds 1
0 e-mail: htmlhacker(at)hotmail.com 0
1 ICQ: 65506604 1
0 CHRISTIANITY COMPUTERS LANGUAGE CHESS 0
010001000101001101010000010001000101001101010000
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA