Here's a link to a page that shows two gif images, side by side. The left image uses <img src="image.gif"> The right images uses <object data="image.gif">
http://members.screenz.com/davelyon/experiments/exp12.htm
In Mozilla firefox, it looks fine. In IE, however, you see really ugly scrollbars in the right image.
Does anyone know how to get rid of the scrollbars?
You guys are great.
Dave.
Scrollbars in IE but not Firefox
I have seen it done with javascript, but I don't think there is any css answer.
Scrollbars in IE but not Firefox
check this out for your answer: http://tutorials.beginners.co.uk/read/category/89/id/318/p/2
"In Internet Explorer therefore, we can't use images inside the <object> element without incurring an unsightly scrollbar. This makes it unusable until Microsoft updates this."
Doesn't sound good.
Thank you cinthg
You're answer was exactly on point and the website you pointed me to was helpful. It appears there's no way to get rid of the scrollbars that IE displays in my example.
What I was really trying to do, however, was a little trickier. If you look at my website, you'll see a banner/applet acorss the top. I use this banner/applet on each of my pages and I was looking for a way to it in an external htm file and then import or embed it in each of the pages that I create. And when I tried using <object> to do this, I got the scrollbars.
I'd still be interested if anyone knows a solution.
Here's the link to the website:
http://members.screenz.com/davelyon/website/index.html
Dave
Scrollbars in IE but not Firefox
Sorry I couldn't help. This actually sounds like it would be a good candidate as an includes file, but I am not familiar enough with it to advise you. Good Luck!
Scrollbars in IE but not Firefox
It is possible to embed html, txt and flash without borders using the object tag. I have a demo set up when I was trying this method for a web site.
The only problem was the image.
My solution. And thanks to Stu and cinthg.
My solution to the problem I was having with <object data="xxx"> is shown in the web page below
http://members.screenz.com/davelyon/experiments/exp16.htm
The page is supposed to show three banners, centered and on top of each other, with a single pixel horizontal row inbetween.
The top banner is created by using <img src="xxx.gif">
The middle banner is created by using <object data="xxx.htm"> and positioned with an external css file.
The bottom banner is created by using <img src="xxx.gif">
In IE6 and Mozilla Firefox, it's perfectly positioned with no scrollbars. If anyone sees a problem, I'd be interested in knowing what browser you're using.
Thank you Stu and cinthg for your help.
Scrollbars in IE but not Firefox
The top and bottom banners have a closing </object> tag but no opening tag. So they aren't actually using 'object'.
Oops
I'll get rid of the two </object> tags. Thanks for pointing that out.
Dave.