8 replies [Last post]
be4884
Offline
Regular
Evanston, Illinois
Last seen: 16 years 46 weeks ago
Evanston, Illinois
Timezone: GMT-6
Joined: 2004-05-29
Posts: 12
Points: 0

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.

Tags:
Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 17 years 12 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

Scrollbars in IE but not Firefox

I have seen it done with javascript, but I don't think there is any css answer.

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

cinthg
Offline
newbie
Last seen: 10 years 22 weeks ago
Timezone: GMT-6
Joined: 2004-05-24
Posts: 3
Points: 0

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.

be4884
Offline
Regular
Evanston, Illinois
Last seen: 16 years 46 weeks ago
Evanston, Illinois
Timezone: GMT-6
Joined: 2004-05-29
Posts: 12
Points: 0

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

cinthg
Offline
newbie
Last seen: 10 years 22 weeks ago
Timezone: GMT-6
Joined: 2004-05-24
Posts: 3
Points: 0

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!

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 17 years 12 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

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.

http://www.trial-site.com/object.html

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

be4884
Offline
Regular
Evanston, Illinois
Last seen: 16 years 46 weeks ago
Evanston, Illinois
Timezone: GMT-6
Joined: 2004-05-29
Posts: 12
Points: 0

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.

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 17 years 12 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

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'.

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

be4884
Offline
Regular
Evanston, Illinois
Last seen: 16 years 46 weeks ago
Evanston, Illinois
Timezone: GMT-6
Joined: 2004-05-29
Posts: 12
Points: 0

Oops

I'll get rid of the two </object> tags. Thanks for pointing that out.

Dave.