Sign in to follow this  
Followers 0

question about webpages

i wanna add something to my webpage. i was wondering if it was possible to use vbscript (or html) to change a graphic when you move the mouse over it. can anyone help?

and i don't wanna use java, wanna keep the page simple and fast.

Share this post


Link to post

sorry. i was just curious. better than the goat post. and i thought it would be good to think about something else temporarily.

Share this post


Link to post

Never, ever, use vbscript.


And the esiest way to make a rollover would be to use Dreamweaver, that handles things like that automatically.

Share this post


Link to post

i wanna add some to my webpage. i was wondering if it was possible to use vbscript to change a graphic when you move the mouse over it. can anyone help?

and i don't wanna use java, wanna keep the page simple and fast.

How will using vbscript be faster than using java[script]?

Share this post


Link to post

i wanna add some to my webpage. i was wondering if it was possible to use vbscript to change a graphic when you move the mouse over it. can anyone help?

and i don't wanna use java, wanna keep the page simple and fast.

How will using vbscript be faster than using java[script]?


For one thing, Netscape Communicator on Windows ME is unable to use Javascript.

Share this post


Link to post

do you really think this is the right time to bring this up?

Yes.

For one thing, Netscape Communicator on Windows ME is unable to use Javascript.

Why anybody would run EITHER of those, let alone BOTH at the same time, I have no idea.

Share this post


Link to post

i wanna add some to my webpage. i was wondering if it was possible to use vbscript to change a graphic when you move the mouse over it. can anyone help?

and i don't wanna use java, wanna keep the page simple and fast.

How will using vbscript be faster than using java[script]?


For one thing, Netscape Communicator on Windows ME is unable to use Javascript.

Netscape has Javascript. However, no browsers EXCEPT Internet Explorer have VBScript. I know that Internet Explorer is the most widely used browser but VBScript is a proprietory closed language and to use it on a webpage would seem to go against the open spirit of the Internet.

Share this post


Link to post

i totally agree. that's why my page is so simple. so i ask the same question with a different angle: can you do this with html, asp, or dhtml (no vbscript or javascript)? i wanna keep the page simple, and compatible (not pissing anyone off in other words) but i wanna pull some tricks. any suggestions?

Share this post


Link to post

i totally agree. that's why my page is so simple. so i ask the same question with a different angle: can you do this with html, asp, or dhtml (no vbscript or javascript)? i wanna keep the page simple, and compatible (not pissing anyone off in other words) but i wanna pull some tricks. any suggestions?


Maybe deadnail knows?

Share this post


Link to post

i totally agree. that's why my page is so simple. so i ask the same question with a different angle: can you do this with html, asp, or dhtml (no vbscript or javascript)? i wanna keep the page simple, and compatible (not pissing anyone off in other words) but i wanna pull some tricks. any suggestions?

To use vbScript, I do not know. The rollover is a standard JavaSript. With DHTML it's imbedded. Quite frankly any browser unable to use JavaScript?; get your money back! they probably have JavaScript turned off and can't figure a way to turn it on. Murharharhar.
Also Visual Basic uses and controls the mouse action similar to JavaScript. In princible both scripts work under the same premises, i.e. they will ask the browser for permission to control mouse actions.
So I think if the user has JavaScript disabled, he/she will have any other script disabled as well.
You either have a simple page without rollover, or a standard page with roll over.

OH, I forgot, asp is a server side language. Therefore neither pure HTML nor a server side language will give you a roll-over effect.

Share this post


Link to post

zeratul: that no work. syntax error unless i throw in a java function. throwing a filename after onmouseover= says "undefined". hmmm...

Share this post


Link to post

Try onMouseover instead of on Mouseover. My mistake.

Example:

<img src="imagename.gif" onMouseover="alert('Testing...')">

Bah, nevermind. Go here instead.

Share this post


Link to post

ok. your code worked. why can't mine? here's what i tried:

<a href="main.htm"><img src=mainsmall.gif onMouseover="gmainsmall.gif" border=0></a>
<a href="main.htm"><img src=mainsmall.gif onMouseover="<img src=gmainsmall.gif>" border=0></a>

i can't figure it out.

Share this post


Link to post

ok. your code worked. why can't mine? here's what i tried:

<a href="main.htm"><img src=mainsmall.gif onMouseover="gmainsmall.gif" border=0></a>
<a href="main.htm"><img src=mainsmall.gif onMouseover="<img src=gmainsmall.gif>" border=0></a>

i can't figure it out.

Neither can I. I know I am buttin in. So far I either had to declare onMouseOver and onMouseOut functions in the Layer of DHTML or my js file. So far I did not know it would work without it, nor do I get what happens in your code when the mouse is out of the image.

Share this post


Link to post

i've already done the rollover trick with java script. i was just wondering if there was a way to do it without scripting. the reason why i don't wanna use java script (or vbscript) is compatability, simplicity, and size. if i can figure out how to do it with just plain html, everyone will see the page the same way, which is my goal.

Share this post


Link to post

onMouseover="document['myimage'].src='comp03_2.gif'; return true;"
onMouseout="document['myimage'].src='comp03_1.gif'; return true;">

Thats Javascript, of course, but it works.

Share this post


Link to post

thanks! it may still be javascript, but at least it cuts down the code. (no variables, yay!) :)

Share this post


Link to post
This topic is now closed to further replies.
Sign in to follow this  
Followers 0