Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 11th, 2001, 05:15 AM
Leolai Leolai is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Sweden
Posts: 3 Leolai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Leolai
I'm new to VBscript but I know the basics of it...

but I have a problem...I'm trying to creat a rollover image without much succes...so if you got a sullotion to my problem, please post a reply

Cheers!

Reply With Quote
  #2  
Old March 11th, 2001, 08:25 AM
JohnB JohnB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 527 JohnB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
If you use javascript it will work with netscape as well:


<a href="somewhere.html"
onMouseOver="document.images[imageno].src='mybutton1.gif';"
onMouseOut="document.images[imageno].src='mybutton.gif';" >
<IMG src="mybutton.gif">
</a>

use the mouseover of an <a> tag. If you don't want a link change the href to:

href=javascript:void()

this will give you a link that does nothing.

The image number is the number of the image in the document. Your first image is 0. You could give them ids instead if you want.

John

Reply With Quote
  #3  
Old March 11th, 2001, 09:20 AM
Leolai Leolai is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Sweden
Posts: 3 Leolai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Leolai
ok

thanks!

I'm starting out with VB script cause it so darn easier than javascript...I will move on to javascript when I feel confident enough..

Thanks for the code john!

Reply With Quote
  #4  
Old March 11th, 2001, 10:46 AM
JohnB JohnB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 527 JohnB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Ok try this

<SCRIPT LANGUAGE="VBScript">
sub image1_onMouseOver
image1.src="mybutton1.gif"
end sub
sub image1_onMouseOut
image1.src="mybutton.gif"
end sub
</script>

<IMG id='image1' src="mybutton.gif">


John

VBScript looks easier if you're used to VBasic but actually the basics are similar. I think this method of trapping mouse events is really "neat".

[Edited by JohnB on 03-11-2001 at 09:49 AM]

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > VBhelp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway