473,396 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can I have larger text size for the ALT text in an image map?

tpgames
785 512MB
I want to use an image map, but I want the text that pops up when the mouse mouse overs the link to be larger. However, in an image map, that text is what's in the ALT tag, and doesn't appear to care what the text size says in the CSS. Is there a cure for this? (Outside of a separate text only area of links for navigation, I'm already planning on doing this.)
Thanks!
(ps. I did try to research this, and no one mentions text size, just all the info I already knew.)
Feb 5 '07 #1
10 3558
tpgames
785 512MB
By the way, I am using a title attribute as well, so that most browsers will show text on a mouse over on the image map.
[HTML]alt="A - L ARCADE Games!" title="A - L Arcade Games!" [/HTML]
I'd like both the title info and the alt info to show in larger text, if its possible. Thanks!
Feb 5 '07 #2
tpgames
785 512MB
After 4 days, may I assume that the answer is, we've not heard of a work around to get the text larger?
Or, is it rather there's a tag in the CSS sheet that is in the CSS classes file that I missed?
I've not found anything yet. LOL I've not even found where the alt tag and title tag have a CSS equivalent, or has the alert button curse. (The curse is that alert buttons can't be changed to display larger text, just because you want it to.) Of course, the work around to that, is a pop-up window, disguising itself as an alert button. LOL
Seriously, I do believe that my google searching of the answer has been fruitless because I've got my search terms wrong. LOL :D
Feb 10 '07 #3
AricC
1,892 Expert 1GB
Sorry must have missed this post somehow. Are you willing to use Javascript? I've seen some work arounds with CSS that may work but they are browser particular. However, if your willing to do some Javascript you can make all kinds of things popup on a mouseover event.


Aric
Feb 10 '07 #4
drhowarddrfine
7,435 Expert 4TB
Google for CSS Tooltips for better ways than using ALT.
Feb 10 '07 #5
tpgames
785 512MB
Sorry must have missed this post somehow. Are you willing to use Javascript? I've seen some work arounds with CSS that may work but they are browser particular. However, if your willing to do some Javascript you can make all kinds of things popup on a mouseover event.


Aric
I am willing to use Java Script. I'm trying to make my site Firefox friendly, as most of my games work well on firefox.

Concerning tooltips:
I'll see what google gives me. However, a java script work around might work better for my game I'm making that uses images maps. :)
Feb 11 '07 #6
tpgames
785 512MB
I found a page that has a JavaScript tooltip that I think will work. It won't have the browser compatibility issues that CSS tooltips might have. My site requires JS enabled anyhow, as its a gaming site so I'm not concerned with people who don't have JS.
The JavaScript Tooltip

On another note, I think I finally figure out the links form with Firefox. :lol:
Feb 11 '07 #7
kbider
1
playing card game some can hep me?
Feb 11 '07 #8
tpgames
785 512MB
I found a javascript tool tip program, however is doesn't work inside of an image map tag.

The span tag inside of the image map tag doesn't work. So, using CSS would give me the same results.

[HTML]<span class="tip" onmouseover="tooltip('styling');" onmouseout="exit();"
AREA SHAPE="Rect" alt="ARCADE GAMES!" <span id="styling">"ARCADE GAMES!" </span>HREF="/gaming/2/arcadegamesnav.html" COORDS="156,473 215,500"> [/HTML]

The whole point is to have an image without text on it, that has text only when you mouse over it, and have this mouse over be within a specific part of the image, not the entire image.

imagemap1
Link to image map. I do have alternative links on the right. However, if I get this to work, I will use it on a game that will not have links on the right. It wouldn't be a game with exposed links.
Thanks!
Feb 11 '07 #9
tpgames
785 512MB
I found another code that looks like it will work. Here's the html part of it.
[HTML]<map name="image-map">
<area shape="rect" coords="15,15,85,85" href="javascript:alert('1')"
onMouseover="show('myLayer1')" onMouseout="hide('myLayer1')">

<area shape="rect" coords="93,15,110,85" href="javascript:alert('2')"
onMouseover="show('myLayer2')" onMouseout="hide('myLayer2')">
</map>

<img name="boxImage" src="white.gif" border=0 width=200 height=100 usemap="#image-map">

<div id="myLayer1" class="myStyle">
<table bgcolor="#ffffcc"><tr><td>
This text is hidden from view.
<br>
It is revealed when the mouse
<br>
moves over the first hot spot
</td></tr></table>
</div>

<div id="myLayer2" class="myStyle">
<table bgcolor="#ffffcc"><tr><td>
This text is also hidden from view until it is
revealed when the mouse moves over the 2nd hot spot
</td></tr></table>
</div>[/HTML]

The JavaScript part is here:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" language="JavaScript"><!--
  2. function show(object) {
  3.     if (document.layers && document.layers[object] != null)
  4.         document.layers[object].visibility = 'visible';
  5.     else if (document.all)
  6.         document.all[object].style.visibility = 'visible';
  7. }
  8. function hide(object) {
  9.     if (document.layers && document.layers[object] != null)
  10.         document.layers[object].visibility = 'hidden';
  11.     else if (document.all)
  12.         document.all[object].style.visibility = 'hidden';
  13. }
  14. //--></script>
  15.  
  16. <style type="text/css"><!--
  17. .myStyle {
  18.     position: absolute;
  19.     visibility: hidden;
  20. }
  21. //--></style>
Knowing to search for tooltip really helped. New vocab word for me. :)
Feb 11 '07 #10
tpgames
785 512MB
playing card game some can hep me?
You'll be better off starting a new thread, and asking a specific question or something. Posting your source code in brackets would help too. Use the '#' sign above the box you post in, and copy and paste your code between the brackets that come up. Also, there is lots of good card game source code on the web, free for the taking if your search terms are correct.

Try: JavaScript source code "card games"
Or try: JavaScript "source code" solitaire games
Often times, looking at the source code of another game will tell you where you went wrong with yours, depending upon what level of understanding of code you have. I have a limited understanding yet. LOL Hope this helps.
Feb 11 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Steve Speirs | last post by:
Hi I'm trying to show/hide a simple piece of text and a text field on a form based on what choice is made from a drop down box. <select name="dropdown" size="1"> <option selected...
2
by: Kai Grossjohann | last post by:
I would like to put a text input field (in the sense of <input type="text">) and an image next to each other, where I know the size in pixels of the image, and I know the total width in em. I...
9
by: Deepa | last post by:
Hi All, I'm facing problem displaying image of size 5000X5000 .My window size is smaller than image size so i'm not able to see the complete image.i can use scroll bars to view the image but i...
51
by: madsgormlarsen | last post by:
I can not get hover effect on a TD to work in IE, it seams you can not have a hover on a td in IE? I have treid this body.section-2 td.current, body.section-2 td.submenu, body.section-2...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
1
by: Ron Vecchi | last post by:
I am using asp.net to upload an image and then perform resizing on it and saving the different sizes to file. The resized images were coming up and being displayed in the bowser fine but the image...
6
by: Shawn | last post by:
Hi. I'm letting the users upload images into a sybase 12.5 database. The problem is that when ContentLength exceeds 131 071 an exception occur. The e.Message property is empty so it doesn't tell me...
10
by: Rock | last post by:
Hi, I want to create this.. A 2 col table with 3 rows down. In the 1st col I want three thumb size images, 1 in each row When an image is rolled on, the larger image shows up in col 2
4
cassbiz
by: cassbiz | last post by:
Could use some help here. This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working???? from the form I want to carry over two lines of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.