Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Thanked 0 Times in 0 Posts

    CSS inside JS problem - I think

    My code is below. I am trying to do three things that I am stuck on.
    1. Insert an image file where the "*****" is
    2. Insert an anchor tag/link where the "*****" is
    3. Make this whole page work in Firefox.

    If anyone could help, I would greatly appreciate it.


    <script language=JavaScript>

    ns4 = (document.layers)? true:false
    ie4 = (document.all)? true:false

    function layerWrite(id,nestref,text) {
    if (ns4) {
    var MyLayr =
    (nestref)? eval('document.'+nestref+
    : document.layers[id].document
    else if (ie4) document.all[id].innerHTML = text


    <style type="text/css">

    .areamap {
    background-image: url(clouds.gif);
    left: 0px;
    top: 0px;


    #genDiv {
    background-color: #FFFFFF;
    height: 30px;
    left: 0px;
    position: relative;
    top: 0px;
    layer-background-color: #004080



    <img src="menu.gif" usemap="#menu">
    <map name="menu">
    <area shape="rect" coords="0,60,96,87" href="javascript:layerWrite('genDiv',null,'<span%20class=\'areamap\'>*****</span>')"

    <area shape="default" nohref>

    Attached Thumbnails Attached Thumbnails CSS inside JS problem - I think-menu.gif  


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts