/    Sign up×
Community /Pin to ProfileBookmark

Printing web page without scrollbar

I am trying to set a print.css to my web page. The problem is I am trying to have all the text display when you print the page but I am using a javascript scroll bar. I am wondering if there is a way to get rid of this scrollbar when a user goes to print the page? The link to the site can be found [URL=”http://kgbadvertising.com/bhgh_rebuild”]here[/URL]. My scrollbar is triggered as such

[CODE]<script type=”text/javascript”>
function getHeight(Elem) {
var xPos = document.getElementById(‘contentText’).offsetHeight;
return xPos;
}

if (getHeight(‘contentText’) > 475 ) {
instantiateScroller(0, “scroll0”, 7, 20, 335, 475, 150);
}
</script> [/CODE]

I am a beginner with javascript to begin with so I appologize for any of the newbie/rookie mistakes. If anyone has any solutions I would greatly appreciate it.

Secret Police

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @secret_police 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.16,
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,
)...