Doom Comic
User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > question about webpages
 
Author
All times are GMT. The time now is 09:31. Post New Thread    Post A Reply
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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.

Old Post Sep 11 2001 22:33 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Super-Joe
Mini-Member


Posts: 58
Registered: 08-01


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

Old Post Sep 11 2001 22:43 #
Super-Joe is offline || Blog || Post History || Add Buddy IP || Edit || Quote
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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

Old Post Sep 11 2001 22:44 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
kain
Banned


Posts: 778
Registered: 05-00


its called a rollover.

Old Post Sep 11 2001 22:45 #
kain is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
lmnt
BAND


Posts: 3801
Registered: 11-00


Never, ever, use vbscript.


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

Old Post Sep 12 2001 01:40 #
lmnt is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
fraggle
Filled with the code of Doom


Posts: 8137
Registered: 07-00



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]?

Old Post Sep 12 2001 02:41 #
fraggle is offline Twitter account Youtube Twitch Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
CacodemonLeader
Powerslave Fanatic


Posts: 367
Registered: 06-01




said:
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.

Old Post Sep 12 2001 02:47 #
CacodemonLeader is offline || Blog || Post History || Add Buddy IP || Edit || Quote
Lt
Administrator


Posts: 9173
Registered: 05-00



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.

Old Post Sep 12 2001 03:01 #
Lt is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
fraggle
Filled with the code of Doom


Posts: 8137
Registered: 07-00




said:

said:
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.

Old Post Sep 12 2001 14:47 #
fraggle is offline Twitter account Youtube Twitch Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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?

Old Post Sep 12 2001 15:57 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Naked Snake
HAHA I AM A FAG AND I CAN'T CHANGE THIS TITLE ANYMORE


Posts: 11317
Registered: 05-01



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?

Old Post Sep 12 2001 18:17 #
Naked Snake is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Phoenix
Member


Posts: 345
Registered: 02-01



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.

Old Post Sep 12 2001 19:14 #
Phoenix is offline || Blog || Post History || Add Buddy IP || Edit || Quote
Zeratul 982
Forum Regular


Posts: 858
Registered: 03-01


<img src="image.gif" onMouseover=...>

Old Post Sep 12 2001 19:36 #
Zeratul 982 is offline || Blog || Post History || Add Buddy IP || Edit || Quote
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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

Old Post Sep 12 2001 20:13 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Zeratul 982
Forum Regular


Posts: 858
Registered: 03-01


Try onMouseover instead of on Mouseover. My mistake.

Example:

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

Bah, nevermind. Go here instead.

Old Post Sep 12 2001 20:35 #
Zeratul 982 is offline || Blog || Post History || Add Buddy IP || Edit || Quote
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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.

Old Post Sep 12 2001 20:45 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Phoenix
Member


Posts: 345
Registered: 02-01



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.

Old Post Sep 12 2001 21:16 #
Phoenix is offline || Blog || Post History || Add Buddy IP || Edit || Quote
Zeratul 982
Forum Regular


Posts: 858
Registered: 03-01


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.

Old Post Sep 12 2001 21:49 #
Zeratul 982 is offline || Blog || Post History || Add Buddy IP || Edit || Quote
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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.

Old Post Sep 12 2001 22:04 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Zeratul 982
Forum Regular


Posts: 858
Registered: 03-01


I don't think there is a way to do that.

Old Post Sep 12 2001 22:09 #
Zeratul 982 is offline || Blog || Post History || Add Buddy IP || Edit || Quote
fraggle
Filled with the code of Doom


Posts: 8137
Registered: 07-00


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.

Old Post Sep 12 2001 22:14 #
fraggle is offline Twitter account Youtube Twitch Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
elbryan42
Your Friendly Neighborhood Cacodemon


Posts: 1467
Registered: 11-00


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

Old Post Sep 12 2001 23:02 #
elbryan42 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 09:31. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > question about webpages

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.