473,327 Members | 2,081 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,327 software developers and data experts.

onMouseOver -->display in second frame

Hi !

I have one top frame with link pointed to right frame.
When you go with mouse, over some picture in the top frame, i want to
display the details of that picture, in the right frame.

So, top frame just pictures .... right frame just details.
I have cca 20 pictures so i have to arange ID for each picture and the
coresponding text to this ID.
How to make this in JS ?

Jun 19 '06 #1
4 7427
marco said the following on 6/19/2006 5:19 AM:
Hi !

I have one top frame with link pointed to right frame.
When you go with mouse, over some picture in the top frame, i want to
display the details of that picture, in the right frame.

So, top frame just pictures .... right frame just details.
I have cca 20 pictures so i have to arange ID for each picture and the
coresponding text to this ID.
How to make this in JS ?


onmouseover="showText('some text')"
onmouseout ="showText('')"

function showText(textToShow){
window.frames['frameName'].document.getElementById('someDivInTheFrame').inne rHTML=textToShow;
}
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 19 '06 #2
> onmouseover="showText('some text')"
onmouseout ="showText('')"
function showText(textToShow){
window.frames['frameName'].document.getElementById('someDivInTheFrame').inne
rHTML=textToShow; }


*** This is what i need but there could be some problem with it....

<script type="text/javascript">
onmouseover="showText('bla,bla')"
//onmouseout ="showText('')"
function showText(textToShow){

window.frames['rightFrame'].document.getElementById('imageID').innerHTML=tex
tToShow; }
</script>

In the top frame i have image slider ( look at my "left-right horizontal
scroller" post ) and when i go onMouseOver some picture slider stops. When i
move mouse away from the picture, slider continues to roll.

How to implement showText function into such concept ?
Jun 20 '06 #3
marco said the following on 6/20/2006 4:39 AM:
onmouseover="showText('some text')"
onmouseout ="showText('')"
function showText(textToShow){

window.frames['frameName'].document.getElementById('someDivInTheFrame').inne
rHTML=textToShow;
}


*** This is what i need but there could be some problem with it....

<script type="text/javascript">
onmouseover="showText('bla,bla')"
//onmouseout ="showText('')"
function showText(textToShow){

window.frames['rightFrame'].document.getElementById('imageID').innerHTML=tex
tToShow; }
</script>

In the top frame i have image slider ( look at my "left-right horizontal
scroller" post ) and when i go onMouseOver some picture slider stops. When i
move mouse away from the picture, slider continues to roll.

How to implement showText function into such concept ?


The same way you do it if your images don't move:

onmouseover="someFunctionToStopTheScroll();showTex t('bla bla bla')"
onmouseover="someFunctionToStartTheScroll();showTe xt('')"
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 20 '06 #4
RC

<frameset rows="30%,*">
<frame src="top.html" name="top" scrolling="auto">
<frame src="bottom.html" name="bottom" scrolling="auto">
</frameset>
in your top.html

<a href="#" onMouseOver="window.open('yourPicture.jpg', 'bottom')">
move mouse over here</a>
Jun 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brandon | last post by:
A newbie question for you all: Suppose you have a webpage with two frames: a main frame, and a second frame. You have several hyperlinks to other websites in the second frame. What you want is...
3
by: Dai Ba Wong | last post by:
Hi: Currently I am having a problem with my webpage. My page consist of two frames, one consist of input text field and the other contains link for different pop-up windows. The problem...
1
by: Justin | last post by:
Hi, I have a simple frameset defined: ---------------- index.html ---------------- <FRAMESET COLS = "225,*"> <FRAME NAME = "a" SRC = "one.html"> <FRAME NAME = "b" SRC = "one.html">...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
5
by: Chris Kennedy | last post by:
I have a button on a webform in frame 1 which causes a frame to loaded into frame 2 in my frame set. I need, however, for some server side code in the button's onclick event to execute before the...
2
by: torext | last post by:
I have 3 frame (not frame set) and I want to forse frame1 (where I define language for user) to be load first, before any other frames. And if possible reload main page. How should I do it from...
5
by: Hank Mishkoff | last post by:
Is there any way to use JavaScript to determine how much text will fit into a non-scrolling browser frame? I have a non-scrolling frame in which I want to insert some text. I know that the text...
8
by: susinthaa | last post by:
Hi, I am new to javascript. This is my problem description. Actually I have 3 pages. In the first page I have 2 frames. In the first page(first) from one of the frame(first), I have a link to...
7
by: KotBayun | last post by:
Hi, I need some help I have some page with 2 frames on it. In the first frame I placed a button, and second frame contains a web page from another server. By clicking the button in the first frame I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.