Results 1 to 2 of 2

Thread: A newbie needs help

  1. #1
    Join Date
    May 2007
    Posts
    31
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default A newbie needs help

    I'm designing a web page that includes

    <div id='myMap' style="position:relative; width:100%; height:100%; left: 1px;"></div>

    It displays a Microsoft VirtualEarth satellite image (the actual location is dictated by javascript that is placed in the <head>).

    It works fine until I try to include the Manual Scroller javascript menu. The menu works fine but the VirtualEarth image fails to display.

    This scroller has 2 scripts and it's this script that stops the Virtual Earth image displaying...

    var speed=2

    iens6=document.all||document.getElementById
    ns4=document.layers

    if (iens6){
    document.write('<div id="container" style="position:relative;width:60px;height:220px;overflow:hidden;border:0px ridge white">')
    document.write('<div id="content" style="position:absolute;width:60px;left:0px;top:0px">')
    }

    Can anyone help me get both elements working on the same page?

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Here revised code:

    Code:
    var speed=2
    
    iens6=document.all||document.getElementById
    ns4=document.layers
    
    if (iens6){
    document.write('<div id="container" style="position:relative;width:60px;height:220px;overflow:hidden;border:0px ridge white">')
    document.write('<div id="content" style="position:absolute;width:60px;left:0px;top:0px"></div></div>')
    }
    You needed to end those tags.

    -magicyte

Bookmarks

Posting Permissions

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