Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-23-2006, 08:57 AM   #1 (permalink)
Don Logan
Junior Member
 
Join Date: Mar 2006
Posts: 19
Default Font style anomaly

Hi,

I have some HTML which calls a Javascript function on mouse over (both pasted below). The function showPic shows a picture stipulated by the href code which is used as the ‘placeholder’ parameter in the function. Some accompanying text stipulated by the title code is used as the ‘desc’ parameter. ‘placeholder’ and ‘desc’ are the IDs of two separate cells of a table where the picture and text are displayed. Everything works fine except when I try and change the font of the table to something other than default, the ‘desc’ text doesn’t show. Is there a way to stipulate the font style without this happening?

Don

HTML:
<img
src="pics/aliceinwonderland/flamingo.gif"
onmouseover=" return showPic(this) "
href="pics/aliceinwonderland/flamingo-head.gif"
title="pic details"
width="50"
height="65"
>

javascript:
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.title) {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
} else {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
return false;
} else {
return true;
}
}
Don Logan is offline   Reply With Quote
Sponsored Links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 12:06 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums