Thursday, July 5, 2024

Sun Ra

To configure this script, first, set the variables inside the script of Step 1 per the comments. As you can see, you can specify more than one iframe on the page in which the script should dynamically resize.

Secondly, for the code of Step 2, be sure the ID (ie: "myframe") matches the ID entered into the script, so the script knows which IFRAMEs to adjust. You may also change the width attribute (ie: 100%) to a different value, as the script only changes the height of the iframe, but not the width.

Thirdly, in the script of Step 1, there is a variable that toggles whether browsers that don't support this script (non IE5+/NS6+) should still see the iframe(s) or not. Generally you should choose to hide the iframe in these non compatible browsers (Opera 7 included), as the iframe's height is hardwired in these cases, and part of the external page most likely will be clipped and unviewable to the viewer if the external page's height exceeds the iframe's default height.

Last but not least, as shown in the demo above, you can actually use links on your main page to load a page into your IFRAME (with the IFRAME automatically resized to that page's height of course). To do so, the link should look like this:

1 Comments:

At July 26, 2024 5:44 PM , Blogger gdfdsgdg said...

When a company wishes to sell or improve the sales of its products or services, it may decide to advertise. Newspapers and magazines carry advertisements, as do bill boards, television and radio. Marketing is the wider process of creating a product or service, advertising it and selling it. Advertising and marketing are vast industries that affect our lives.
more>/advertising

 

Post a Comment

<< Home