Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Hi.

    When you select an option that re-loads the iframe with different content, it won't change the url/address of the current page - because you're still on the same page .

    [If you want to know which content is currently loaded in the iframe you could use the location's hash value..]

    BTW If you add a banner to the top of your page then you may want to adjust this line
    Code:
    offs = 150; /* Aaargh! IE */
    and set 150 to a higher value. This is an estimated value for the distance between the top of the browser and the top of the iframes for retarded IE.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  2. #17
    New Coder
    Join Date
    May 2011
    Posts
    26
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I didnt get the last point..i am trying to change the value of "offs"..but i dont see the difference.

    Also I am using below to add the banner just above the menu bar but there is somthing missing in it...adding height option doesnt work very well with the img attribute.

    <div>
    <img src="./images/banner2.jpg" width="100%"></img>
    </div>

  3. #18
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Hello. You could leave 'offs' at 150 and ignore it: it's only there for Internet Explorer if it fails to determine the browser height.
    Code:
    <div>
    <img src="./images/banner2.jpg" width="100%"></img>
    </div>
    There is no closing tag for 'img' and setting a percentage height for it will most likely stretch it to a percentage of the browser window. If you know that the image height is, say, 50px then for a DOCTYPE of XHTML use
    Code:
    <div>
    <img src="./images/banner2.jpg" width="100%" height="50" />
    </div>
    or for HTML
    Code:
    <div>
    <img src="./images/banner2.jpg" width="100%" height="50" >
    </div>
    Stretching the image can cause distortion so it's worth testing in different browsers.

    This page has some interest info about image height/width.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •