Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Working Mechanic
Picture of celtic rugs
Posted
Hi, When I add an iframe onto a page that has a java script menu the iframe moves to a different location Confused here is a link to the page.
and here is a link to the .ims file.
Can you help?
 
Posts: 26 | Registered: February 20, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
Looks like no one can find your problem.

I’ve had a quick look at your page, and couldn’t find the problem.

I then downloaded your IMS file, and still can’t find the problem.

The only thing I did find was that on the page for your iFrame (indexwindow), there is an image to the left of your other images that is not visible. The image is “navbg.gif:, object obj1151.

I tried removing it, but it didn’t solve the problem.

Over to the gurus.
 
Posts: 1143 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
Yahoo . . . I’ve just found the solution to your problem.

Because you are placing code into a code object into the body, you do not need the opening <body> tag at the start of your script. Besides that, you do not have a closing body tag to match it.

Also, Site Spinner creates it’s own DIV for the code object, so again, you do not need the opening and closing DIV’s in the code itself.

Delete
 <body>

<div
from the beginning of the menu’s code, and also the
<div>
at the very end of the script.

Again, you have two opening DIV’s, but no ending ones. As I said, they are not required as SS provides it’s own.

I just tried the above with your IMS file and it worked fine.


EDIT:

Sorry, with a little more testing, there is some misinformation there.

I forgot that the menu code includes some CSS. By deleting the DIV tags, the menu loses some of it’s formatting.

So, still delete the <body> tag at the start of the code, but leave the <div there.

At the end of the code, place a forward slash in front of the DIV in the closing tag, as </div>

That solves the iFrame problem, and retains the menus formatting.

This message has been edited. Last edited by: postyr,
 
Posts: 1143 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Picture of celtic rugs
Posted Hide Post
Thanks a million works perfect Smile
 
Posts: 26 | Registered: February 20, 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.