Current location: Hot Scripts Forums » General Web Coding » JavaScript » javascript


javascript

Reply
  #1 (permalink)  
Old 07-10-04, 12:35 PM
kalinchuk kalinchuk is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: ...
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
Talking javascript

i want to make a link to a webpage, but i dont want people to see where it links(on the bottom where the taskbar is). I want it to show what i want it to show.
Reply With Quote
  #2 (permalink)  
Old 07-12-04, 06:42 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
To change the statusbar use an onmouseover event like this.
<a href="mypage.htm" onmouseover="window.status='You can\'t see where this points to'">My Page</a>
Reply With Quote
  #3 (permalink)  
Old 07-12-04, 04:30 PM
kalinchuk kalinchuk is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: ...
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
hide

it doesnt work
Reply With Quote
  #4 (permalink)  
Old 07-13-04, 06:12 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Hmm, I thought it would but you're right, it doesn't

Try this instead:

<a onclick="document.location='MyPage.htm'">My Page</a>

Now it won't look like a link but that can be fixed using CSS.

<a style="text-decoration:underline; color:blue; cursor:hand;" onclick="document.location='MyPage.htm'">My Page</a>
Reply With Quote
  #5 (permalink)  
Old 07-13-04, 09:43 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Here is an example of what you are talking about:

http://www.digioz.com/javascript/sta...statusbar.html

And here is the code you need:

Code:
 
 
<!-- The following Code goes in the header of your page -->
<SCRIPT LANGUAGE="JavaScript">
<!-- 
function sayHello()
{
 window.status = "Hello!";
 return true;
}
function sayGoodBye()
{
 window.status = "Goodbye!";
 return true;
}
// -->
</SCRIPT>
<!-- The following Code goes in the body of your page -->
<A HREF="http://www.digioz.com" onMouseOver="return sayHello();" onMouseOut="return sayGoodBye();">Click Here to see the Effect on Status Bar</A>
__________________
Reply With Quote
  #6 (permalink)  
Old 07-13-04, 05:20 PM
kalinchuk kalinchuk is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: ...
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, it works now.
Reply With Quote
  #7 (permalink)  
Old 07-14-04, 10:07 AM
gezer77 gezer77 is offline
Newbie Coder
 
Join Date: Jul 2004
Location: Texas
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by TwoD
To change the statusbar use an onmouseover event like this.
<a href="mypage.htm" onmouseover="window.status='You can\'t see where this points to'">My Page</a>
It might have not worked because you have onmouseover and it has to be onMouseOver I believe.
Reply With Quote
  #8 (permalink)  
Old 07-15-04, 02:21 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
That's not the problem, onmouseover in not case sensitive when you use it in a tag. The script works but somehow the link overrides it to display the url...
Reply With Quote
  #9 (permalink)  
Old 07-15-04, 02:11 PM
gezer77 gezer77 is offline
Newbie Coder
 
Join Date: Jul 2004
Location: Texas
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by TwoD
That's not the problem, onmouseover in not case sensitive when you use it in a tag. The script works but somehow the link overrides it to display the url...
Oh, well I'm no javascript expert but I thought that case sensitive mattered. Guess not
Reply With Quote
  #10 (permalink)  
Old 07-16-04, 12:13 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Case sensitivity can be a real pain sometimes, especially when all commands are not case sensitive in some places but are in some other...
But you usually get an error stating that what you just called is undefined so that atleast gives you a clue
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript menu covered by java applet shaisachs JavaScript 7 12-28-04 11:38 PM
Javascript and content feeds marakkesh JavaScript 0 07-02-04 04:21 AM
Need help populating 2nd Select box with JavaScript jomama13 JavaScript 0 06-22-04 05:27 PM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 10:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.