canadianjameson
11-04-2004, 02:14 AM
i currently use this script to generate popup windows
<script type=text/javascript>
function newWin(urlLoc) {
_winName = "HTMLview";
_info = "toolbar=yes"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=yes"; // yes|no
_info += ",scrollbars=yes";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
DispWin=window.open(urlLoc,_winName,_info);
DispWin.focus()
}
</script>
opened with this:
<a href="javascript:newWin('prodInfo/Sirco/PVS.htm');">blahblah</a>
but i would like the window to have this custom scrollbar:
BODY {
scrollbar-arrow-color:#000000;
scrollbar-track-color:#FFFFFF;
scrollbar-shadow-color:#000000;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#000000;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-3dlight-color:#FFFFFF}
how would i get the JS script to use the above CSS?
p.s: i have that CSS in a .css file if thats easier to call...
<script type=text/javascript>
function newWin(urlLoc) {
_winName = "HTMLview";
_info = "toolbar=yes"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=yes"; // yes|no
_info += ",scrollbars=yes";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
DispWin=window.open(urlLoc,_winName,_info);
DispWin.focus()
}
</script>
opened with this:
<a href="javascript:newWin('prodInfo/Sirco/PVS.htm');">blahblah</a>
but i would like the window to have this custom scrollbar:
BODY {
scrollbar-arrow-color:#000000;
scrollbar-track-color:#FFFFFF;
scrollbar-shadow-color:#000000;
scrollbar-face-color:#FFFFFF;
scrollbar-highlight-color:#000000;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-3dlight-color:#FFFFFF}
how would i get the JS script to use the above CSS?
p.s: i have that CSS in a .css file if thats easier to call...