Author |
Topic |
|
gavinbsocom
Starting Member
USA
8 Posts |
Posted - 24 September 2003 : 11:08:08
|
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
|
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 |
|
|
gavinbsocom
Starting Member
USA
8 Posts |
Posted - 24 September 2003 : 18:04:01
|
thanks...so it would be something like ???can you give me an example...i dont understand... |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 24 September 2003 : 18:45:17
|
<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 |
|
|
masterao
Senior Member
Sweden
1678 Posts |
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 24 September 2003 : 22:02:36
|
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 |
|
|
gavinbsocom
Starting Member
USA
8 Posts |
Posted - 24 September 2003 : 22:10:47
|
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.. |
|
|
gavinbsocom
Starting Member
USA
8 Posts |
Posted - 24 September 2003 : 23:47:28
|
what you suggested isnt what im looking for,,,thanks though...i reposted again..in the message above this ^^^^^^^^^^^^^^^^^^^^^^^ |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 25 September 2003 : 04:48:36
|
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.” |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 25 September 2003 : 04:53:07
|
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 |
|
|
gavinbsocom
Starting Member
USA
8 Posts |
Posted - 25 September 2003 : 07:32:40
|
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.. |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 25 September 2003 : 07:40:46
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 25 September 2003 : 10:36:46
|
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. |
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 25 September 2003 : 10:37:53
|
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. |
|
|
|
The Omega
New Member
55 Posts |
Posted - 26 September 2003 : 13:10:55
|
try overlib..... it is easily modified for db access.... |
|
|
|
Topic |
|