HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 1999, 04:19 PM
chattan
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I am putting together a website for a photographer friend, and he would like a description (one or two sentences) displayed when the mouse moves over a thumbnail. He wants this description to appear in the bottom left corner of the screen with the thumbnails to the right of this. As there will be about 20+ thumbnails per category, i've had to make this a separate frame. So, my question is:

How can I display text is a different frame when the mouse passes over an image?

I can do it in the same frame using something like

<SCRIPT LANGUAGE = "JavaScript">
/* Show an object */
function showObject(object) {
object.visibility = VISIBLE;
}
/* Hide an object */
function hideObject(object) {
object.visibility = HIDDEN;
}
</SCRIPT>

and later on

<a href= ... onmouseover="showObject(desc1)"
onmouseout="hideObject(desc1)"> ... </a>

(That's using an IE style class for the desc, Navigator I deal with as

/* Simple version detection */
var isNS = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);

/* They can be used in place
of hidden and visible because on occasion Navigator has problems with the two */
var HIDDEN = (isNS) ? 'hide' : 'hidden';
var VISIBLE = (isNS) ? 'show' : 'visible';

/* Create shortcut variables for different absolutely positioned elements */
var desc1 = (isNS) ? document.desc1 : document.all.desc1.style;
etc.
)

Is there a simple variation on these themes that I can use, or do I need a total re-write?


------------------
J K-C

Reply With Quote
  #2  
Old June 10th, 1999, 10:06 AM
jayuen
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
this worked for me:

suppose the frame that you wanted to load s called "one" and the html page you want to load into that frame is called one.html.

onMouseOver="parent.one.location='one.html'"

Reply With Quote
  #3  
Old June 10th, 1999, 11:13 AM
dahamsta
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Unfortunately, that will require you to have a page for each thumbnail, although this could be overcome using a large page with an anchored area for each thumbnail:

onMouseOver="top.frames[1].location.href='page.htm#picnum'"

I've been thinking about this though, and I'm wondering if you could use document.write? I'm not though, JavaScript security might prevent it. Try this:

onMouseOver="top.frames[1].document.write('Text to be displayed here'); return true"

adam

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Displaying text in another frame on mouseover


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway