elbryan42 Posted September 11, 2001 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. 0 Share this post Link to post
Super-Joe Posted September 11, 2001 do you really think this is the right time to bring this up? 0 Share this post Link to post
elbryan42 Posted September 11, 2001 sorry. i was just curious. better than the goat post. and i thought it would be good to think about something else temporarily. 0 Share this post Link to post
læmænt Posted September 12, 2001 Never, ever, use vbscript. And the esiest way to make a rollover would be to use Dreamweaver, that handles things like that automatically. 0 Share this post Link to post
fraggle Posted September 12, 2001 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]? 0 Share this post Link to post
CacodemonLeader Posted September 12, 2001 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. 0 Share this post Link to post
Lüt Posted September 12, 2001 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. 0 Share this post Link to post
fraggle Posted September 12, 2001 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. 0 Share this post Link to post
elbryan42 Posted September 12, 2001 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? 0 Share this post Link to post
Naked Snake Posted September 12, 2001 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? 0 Share this post Link to post
Phoenix Posted September 12, 2001 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. 0 Share this post Link to post
Zeratul 982 Posted September 12, 2001 <img src="image.gif" onMouseover=...> 0 Share this post Link to post
elbryan42 Posted September 12, 2001 zeratul: that no work. syntax error unless i throw in a java function. throwing a filename after onmouseover= says "undefined". hmmm... 0 Share this post Link to post
Zeratul 982 Posted September 12, 2001 Try onMouseover instead of on Mouseover. My mistake. Example: <img src="imagename.gif" onMouseover="alert('Testing...')"> Bah, nevermind. Go here instead. 0 Share this post Link to post
elbryan42 Posted September 12, 2001 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. 0 Share this post Link to post
Phoenix Posted September 12, 2001 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. 0 Share this post Link to post
Zeratul 982 Posted September 12, 2001 You can't just punch in tags inside the onMouseover, onClick, onMouseout, etc. attributes. However, I did find something in the PageResource site I posted in my previous post. Here is something similar to what you are asking for. It has to to with link rollovers. I don't know what's up with their resolution, but at least it opens. 0 Share this post Link to post
elbryan42 Posted September 12, 2001 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. 0 Share this post Link to post
Zeratul 982 Posted September 12, 2001 I don't think there is a way to do that. 0 Share this post Link to post
fraggle Posted September 12, 2001 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. 0 Share this post Link to post
elbryan42 Posted September 12, 2001 thanks! it may still be javascript, but at least it cuts down the code. (no variables, yay!) :) 0 Share this post Link to post