/    Sign up×
Community /Pin to ProfileBookmark

pesky Scrollbars!

Hi there…

I have a pop-up Window with a Flash movie inside. Flash movie is 100×100, so is the pop-up window.

But in Safari, I get scroll bars! Not good!

If I make the window 1 pixel larger, I get no scroll bars … good! BUT, now I have 1 pixel of white border.

Is there any way to:
1) tell Safari “no scrollbars” whatsoever
-or-
2) color the background of a pop-up window?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@disgracianMar 29.2007 — You could add some CSS rules to the pop-up window to prevent the scrollbars.
<style type="text/css">
html,body{
overflow:hidden;
}
</style>

Should hopefully do the trick.

Cheers,

D.
Copy linkTweet thisAlerts:
@sroberts209authorMar 29.2007 — Thanks!


OK... I'm a bit new at this. I obviously can't add the css style you sent to the HTML of the pop-window itself... because it doesn't exist until the user clicks.

So do I add it to the HTML in the original HTMl file?

So here is the code from the page. Telling the browser to open a new window. Put the css style in here somewhere?


<td><a href="javascript:;" onClick="MM_openBrWindow('Flash/Rosita_gallery/farm_rosita_gallery.htm','none','width=584,height=333')"><img src="Images/Testimonials/Farm_Testimonials_rosita.gif" width="210" height="94" border="0"></a></td>
Copy linkTweet thisAlerts:
@disgracianMar 30.2007 — Well, you can add the style to the HTML of the popup window. The function loads the [b]Flash/Rosita_gallery/farm_rosita_gallery.htm[/b] file into a new window, so all you need to do is add the CSS to that file.

Cheers,

D.
Copy linkTweet thisAlerts:
@sroberts209authorMar 30.2007 — Yes! Yes! of course ... it worked!

Thanks so much!
×

Success!

Help @sroberts209 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...