Click to See Complete Forum and Search --> : Scrollbars in iframes and Images appering elsewere


zenith
10-06-2003, 11:32 PM
Hey, i have recently been making a site and had to bring myself to useing iframes (evan tho i hate them with a passion!) any way, my site hugely relies on graphics and when i put in that i want no scrolling in the i frame... theres no scrollbars bu theres like about a 5 pix margin where they should be... this is really anoying because i need it not to have that 5 pix margin so that the images all sort of sit right. so how do i get rid of scrollbars totally???

The second problem is.... i know i have the script somewhere but i just cant seem to find it (i recon my brothers been on the computer again and deleted stuff that he thought wasnt important lol) I need a script so that if i click on a thumnail or a link to an image the image can appear elsewhere on the page without having to make a totally new page... is this possible or am i just dreamin this up?

lillu
10-08-2003, 01:42 AM
Hi,

I reckon it will be the framespacing property not set to 0 that is causing you trouble... Try this:

<iframe src='' framespacing='0' frameborder='no' scrolling='no' width=''

The script you're looking for is quite elementary, I have used it myself... I can post the code if you want but here's some points that can get you started.

You place the image in a div element, give it a class / id name and set it visibility:hidden in the style tags.

Connect an event handler to it and set the style to visibility:visible in javascript.

HTH,

Lillu