Women in Technology

Hear us Roar



Article:
  Build a Simple MP3 Player for Your Site
Subject:   Code within the Batmosphere Dreamweaver Extension
Date:   2006-01-11 12:45:42
From:   dgrossman
The extension worked for me, but I'd like to edit the Java Script and I'm not familiar with Java. Right now, the result I get is a full-sized white window. I'd like to know where I need to edit to change dimensions and color. This is the script that was automatically placed in the page:


<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>


I'd love to know what all of it means, but if someone could tell me which fields to change for dimensions and color, I'd be much obliged.


Thanks.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • David Battino photo Code within the Batmosphere Dreamweaver Extension
    2006-01-11 15:00:35  David Battino | O'Reilly Blogger [View]

    The code you quote above is Dreamweaver’s Netscape Resize Fix. The code that generates the pop-up windows is in an external file called soundpop.js. You’ll need to enter the following line on your page to call it: <script language="JavaScript" type="text/JavaScript" src="soundpop.js"></script>. See the example file in the download. By the way, JavaScript is different from Java. —David
  • Code within the Batmosphere Dreamweaver Extension
    2006-01-11 14:31:26  dgrossman [View]

    My apologies. I see now that I still needed to put the soundpop.js file in place with its reference line at the top of the page.
    But I still can't seem to change the background color of the popup window. I've found 3 places in the java script referring to color and changed all of them to #000000 but only the area right around the controller seems effected. The main background remains orange.
    Thanks again!