Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 asp mouse over???
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gavinbsocom
Starting Member

USA
8 Posts

Posted - 24 September 2003 :  11:08:08  Show Profile  Visit gavinbsocom's Homepage  Send gavinbsocom an AOL message
Is thier some sort of code for asp or ccs2 that when you put your mouse on a word a little box on the side pop's up with information reguarding that link. For example if the link was .... roster....and you put your mouse over it al ittle box would come up saying .....here you can find information regaurding our clan members.......... I know you can do it with javascript with the on mouse over....but i hate javascript,,,,and im sticking to learn asp and vbscript....plus i cant get javascript to workinside of an asp page....Thankyou.

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 24 September 2003 :  11:23:57  Show Profile
You can do it in HTML, the 'title' attribute of the IMG tag and the 'alt' attribute of the A tag.

The UK MkIVs Forum
Go to Top of Page

gavinbsocom
Starting Member

USA
8 Posts

Posted - 24 September 2003 :  18:04:01  Show Profile  Visit gavinbsocom's Homepage  Send gavinbsocom an AOL message
thanks...so it would be something like ???can you give me an example...i dont understand...
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 September 2003 :  18:45:17  Show Profile  Visit dayve's Homepage
<img src="someimage.jpg" alt="Photo Of Some Image I Took">

<a href="http://forum.snitz.com/forum" title="Click Here To Visit Snitz Forums Website">Snitz</a>


Edited by - dayve on 24 September 2003 22:01:59
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 24 September 2003 :  20:38:55  Show Profile  Visit masterao's Homepage
Isn't alt used for image-tags and title for a-tags?

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 September 2003 :  22:02:36  Show Profile  Visit dayve's Homepage
quote:
Originally posted by masterao

Isn't alt used for image-tags and title for a-tags?



yeah, that was a slip up, actually I wanted to note that I personally use the title tag for both images and anchors. reason being is when an example like this occurs:

<img src="myImage.jpg" alt="Photo Of Me" title="Don't I Look Good!">

If my image does not load properly or is broken, a container will show the Photo Of Me but if I put my mouse over the image I will see Don't I Look Good. The title tag supresses the alt tag in a scenario like this.



Edited by - dayve on 24 September 2003 22:12:59
Go to Top of Page

gavinbsocom
Starting Member

USA
8 Posts

Posted - 24 September 2003 :  22:10:47  Show Profile  Visit gavinbsocom's Homepage  Send gavinbsocom an AOL message
I need a mouse over function whether its with css2 or html or asp and vbscript...sort of like the the one with javascript....but hte javascript wont load in my asp pages....so i dont know what to do..
Go to Top of Page

gavinbsocom
Starting Member

USA
8 Posts

Posted - 24 September 2003 :  23:47:28  Show Profile  Visit gavinbsocom's Homepage  Send gavinbsocom an AOL message
what you suggested isnt what im looking for,,,thanks though...i reposted again..in the message above this ^^^^^^^^^^^^^^^^^^^^^^^
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 25 September 2003 :  01:30:36  Show Profile
you will have to use some sort of client side script it sounds like. why can't you use javascript?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 September 2003 :  04:48:36  Show Profile
Actually, the alternative text appearing as a tool tip is as a result of a glitch in Internet Explorer. Alternative text is only meant to be displayed if the image fails to load and is also used if your visitor is using a "screen reader". To ensure that a tooltip is displayed for an image in all browsers, you should use the title attribute. That's not to say you shouldn't use the alt attribute (in fact, it's a WAI requirement) as not doing so would leave your site unborwsable to the visually impaired, espacially if you use a lot of imagery.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 25 September 2003 :  04:53:07  Show Profile
quote:
Originally posted by DavidRhodes

You can do it in HTML, the 'title' attribute of the IMG tag and the 'alt' attribute of the A tag.



Or the other way round

The UK MkIVs Forum
Go to Top of Page

gavinbsocom
Starting Member

USA
8 Posts

Posted - 25 September 2003 :  07:32:40  Show Profile  Visit gavinbsocom's Homepage  Send gavinbsocom an AOL message
Im asking if any one knows how to do it with asp and vbscript as opposed to javascript....But if any one knows the javascript one ill give it another try..Everytime I put javascript in my asp pages, they dont work..
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 25 September 2003 :  07:40:46  Show Profile
I think you're getting confused with all the languages, ASP isn't a language, it's a set of components that are implemented using server-side VBScript (which is a language). The above solutions, using 'title' are just HTML.

The UK MkIVs Forum
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 September 2003 :  10:36:46  Show Profile  Visit dayve's Homepage
quote:
Originally posted by gavinbsocom

Everytime I put javascript in my asp pages, they dont work..



considering most javascript is executed on the client side with a web browser, it would be a fair assumption that you are doing something wrong, not the code. perhaps show us some javascript code that is causing you problems.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 September 2003 :  10:37:53  Show Profile  Visit dayve's Homepage
quote:
Originally posted by MeTV

Actually, the alternative text appearing as a tool tip is as a result of a glitch in Internet Explorer. Alternative text is only meant to be displayed if the image fails to load and is also used if your visitor is using a "screen reader". To ensure that a tooltip is displayed for an image in all browsers, you should use the title attribute. That's not to say you shouldn't use the alt attribute (in fact, it's a WAI requirement) as not doing so would leave your site unborwsable to the visually impaired, espacially if you use a lot of imagery.





a glitch? hmm, never read that but neither here nor there, the post I made in this thread basically demonstrates that and explains why I would use title and alt in an <img> tag.

Go to Top of Page

The Omega
New Member

55 Posts

Posted - 26 September 2003 :  13:10:55  Show Profile
try overlib..... it is easily modified for db access....
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07