Solved

Affecting frames in Version 3 browsers.

Posted on 1998-12-12
4
166 Views
Last Modified: 2010-04-09
Is it possible to do an image swap or some such thing in one frame triggered by an event such as a mouse click in another frame.

In a V4 browser you just call top.framename.object.property or window.framename.object.property but in V3 you get an error that the object is not defined or does no have the specified source.  Any suggestion?
0
Comment
Question by:guadalupe
  • 2
4 Comments
 
LVL 4

Expert Comment

by:martinag
Comment Utility
parent.frameName.document.imageName.src should work.

Martin
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 total points
Comment Utility
except in IE3 which does not support the image swap at all.

Version 3 browsers don't support window.onclick either and cannot register mouse clicks except on form buttons and anchors.

Michel
0
 
LVL 3

Author Comment

by:guadalupe
Comment Utility
Hey thanks for the answer but it brings up another problem.  The images I am swapping are of differening sizes and V3 seem to force the new image into the old image dimensiones EVEN THOUGH I have purposly not hard coded the dimensions in order to avoid this.  V4 respect the lack of hard coded dimensions and take the dimensions of each new image.  But V3 seems to take the dimensions of the original image and force all swapped images into those.  Any suggestions?

Thanks
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
I am sorry, only way is to use frames or new window and resize the windows (or just rewrite the html in the window/frame to hold the real image size. NS4 will also not reflow a page if the image changes...

Michel
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now