Newsgroup: it.comp.lang.javascript
Titolo: fireworks e JS

potreste dirmi che significato ha il seguente javascript che fireworks
inserisce automaticamente nell'head della pagina html che viene generata al
momento dell'esportazione di un immagine con slices?
<script language="JavaScript">
<!-- hide this script from non-javascript-enabled browsers
if (document.images) {
}
// stop hiding -->
</script>
--
ciao, Michele

immagino tu faccia riferimento al sito 
www.fireworks.com
beh...
1) il javacript in questione non è tra gli head
2) il testo completo che riporto di seguito è decisamente
valido e comprensibile.
<script language="JavaScript">
<!-- hide this script from non-javascript-enabled browsers
if (document.images) {
nav_cat_F1 = new Image(120,18); nav_cat_F1.src = "images/nav_cat.gif";
nav_cat_F2 = new Image(120,18); nav_cat_F2.src = "images/nav_cat_F2.gif";
nav_products_F1 = new Image(120,26); nav_products_F1.src =
"images/nav_products.gif";
nav_products_F2 = new Image(120,26); nav_products_F2.src =
"images/nav_products_F2.gif";
nav_locations_F1 = new Image(120,26); nav_locations_F1.src =
"images/nav_locations.gif";
nav_locations_F2 = new Image(120,26); nav_locations_F2.src =
"images/nav_locations_F2.gif";
nav_discounts_F1 = new Image(120,26); nav_discounts_F1.src =
"images/nav_discounts.gif";
nav_discounts_F2 = new Image(120,26); nav_discounts_F2.src =
"images/nav_discounts_F2.gif";
nav_mall_F1 = new Image(120,26); nav_mall_F1.src = "images/nav_mall.gif";
nav_mall_F2 = new Image(120,26); nav_mall_F2.src = "images/nav_mall_F2.gif";
nav_univ_F1 = new Image(120,26); nav_univ_F1.src = "images/nav_univ.gif";
nav_univ_F2 = new Image(120,26); nav_univ_F2.src = "images/nav_univ_F2.gif";
nav_about_F1 = new Image(120,26); nav_about_F1.src = "images/nav_about.gif";
nav_about_F2 = new Image(120,26); nav_about_F2.src =
"images/nav_about_F2.gif";
nav_safety_F1 = new Image(120,26); nav_safety_F1.src =
"images/nav_safety.gif";
nav_safety_F2 = new Image(120,26); nav_safety_F2.src =
"images/nav_safety_F2.gif";
nav_lifestyle_F1 = new Image(120,26); nav_lifestyle_F1.src =
"images/nav_lifestyle.gif";
nav_lifestyle_F2 = new Image(120,26); nav_lifestyle_F2.src =
"images/nav_lifestyle_F2.gif";
nav_links_F1 = new Image(120,26); nav_links_F1.src = "images/nav_links.gif";
nav_links_F2 = new Image(120,26); nav_links_F2.src =
"images/nav_links_F2.gif";
nav_sitemap_F1 = new Image(120,26); nav_sitemap_F1.src =
"images/nav_sitemap.gif";
nav_sitemap_F2 = new Image(120,26); nav_sitemap_F2.src =
"images/nav_sitemap_F2.gif";
nav_search_F1 = new Image(120,26); nav_search_F1.src =
"images/nav_search.gif";
nav_search_F2 = new Image(120,26); nav_search_F2.src =
"images/nav_search_F2.gif";
nav_send2_F1 = new Image(120,26); nav_send2_F1.src = "images/nav_send2.gif";
nav_send2_F2 = new Image(120,26); nav_send2_F2.src =
"images/nav_send2_F2.gif";
nav_home_F1 = new Image(120,30); nav_home_F1.src = "images/nav_home.gif";
nav_home_F2 = new Image(120,30); nav_home_F2.src = "images/nav_home_F2.gif";
}
/* Function that swaps images. */
function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}
/* Functions that track and set toggle group button states. */
function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
