473,320 Members | 1,902 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,320 software developers and data experts.

Iframe Issues

Hi There,


I'm a complete newcomer to javascript/programming so I'm having a little trouble with this one.

I have a website at www.alisonhedley.co.uk.

At present it's all working Ok - but what I want to do is:

when the main image is clicked, I want it to appear full-size (full screen), in the same window.
preferably with the window greyed-out in the background.

The thumbnails open up images and descriptions in an Iframe.

Consequently, using an imageswap OnMouseOver makes the larger image appear, but it's cut off by the bottom of the Iframe.

Is it possible to use OnMouseOver to open up the full-size image outside of the Iframe?

hope that's not a terrible description.

cheers guys.
Dec 19 '07 #1
4 1279
Hopefully im not missing the point here. OK here goes,

Firstly i would use a div as my method of displaying the image. Set up a div tag that is positioned absolutely in the center of the screen at the desired size, set its z-index to something like 999 to ensure it remains on top and set its visiblity to hidden. Also on the div place an image (just plain) as a place holder.

Once you have done that then you can use a javascript to change the visiblity of the div tag and dynamically update the image scr throught document.getElementById().

Also i would use a javascript function applied to the full sized image on the div tag as a hyperlink that returns void(0); but allows you to rehide the div tag.

Hope this help you

Chris
Dec 19 '07 #2
Hi Chris, thanks for the speedy reply!

That all sounds a bit complicated.. I'll see if I can get my tired brain cells around it!
Dec 19 '07 #3
Thats not a problem, if you are still having problems after looking into it further then feel free to PM me and ill try to help you out.

Also im sure another suggestion will be made before long as another solution which you may want to look into if someone does post another suggestion.

Chris
Dec 19 '07 #4
acoder
16,027 Expert Mod 8TB
I can't seem to see the images.

You can show the images outside the iframe if the iframe is from the same domain as the main page.
Dec 21 '07 #5

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

Similar topics

11
by: HolaGoogle | last post by:
Hi, Sorrryy to ask such basic question but i do need your help! Here's what i'm trying to do: In my parent form i'm calling a my Iframe form to get certain value, then depending on that value...
7
by: Vincent van Beveren | last post by:
Hi everyone I have a JavaScript app that creates an IFRAME through DOM (createElement('IFRAME')) However, that IFRAME does not have any content yet. ...
4
by: Paul Brant | last post by:
Hi all, I have a page with an IFRAME in it. From a script in the main ( parent ) page I instruct the IFRAME to load a specific URL. The URL contains parameters that are processed by the server....
1
by: milbrand | last post by:
I have an IFrame: <IFRAME id="BIssues" title="issues" src="BIssues.aspx" frameBorder="no"style="position:absolute;width:100%;height: 150px;border:0px"> In this iframe I have onmouseover that...
9
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible...
1
by: brussel | last post by:
I'm trying to copy information in one iframe to another iframe with javascript. I am using firefox and information from my local domain so there are no security issues. However I'm just not getting...
7
by: Tom Cole | last post by:
IFrames have been used by years for people to accomplish many of the tasks the XMLHttpRequest does for them now...I unfortunately am late in the game and XMLHttpRequest was already out there by the...
2
by: kwenterprise | last post by:
Hello All, I am normally great at figuring out ways around iframe issues that frustrate us all. I am using javasript to try and break an iframe that I have a banner rotator embedded in but it...
6
by: howa | last post by:
Since it is part fo the standard, why I always heard that we should avoid iframe? any comments? thanks.
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
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: 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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.