Results 1 to 2 of 2

Thread: Linking to an IFRAME

  1. #1
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Linking to an IFRAME

    Hey guys. Currently trying to teach myself Javascript, so sorry if this is a dumb question:

    Im trying to create a dropdown menu, and noticed that I am unable to target to an IFRAME! Any suggestions? =X

    Heres what it looks like so far:

    http://webdev.corp.danni.com



    Heres the Code:



    menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}


    ////////////////////////////////////////
    // Editable properties START here //
    ////////////////////////////////////////

    // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
    if(navigator.appVersion.indexOf("MSIE 6.0")>0)
    {
    effect = "Fade(duration=0.5);Alpha(style=0,opacity=95);Shadow(color='#777777', Direction=0, Strength=0)"
    }
    else
    {
    effect = "Shadow(color='#004e00', Direction=0, Strength=0)" // Stop IE5.5 bug when using more than one filter
    }


    timegap=500 // The time delay for menus to remain visible
    followspeed=5 // Follow Scrolling speed
    followrate=40 // Follow Scrolling Rate
    suboffset_top=10; // Sub menu offset Top position
    suboffset_left=10; // Sub menu offset Left position
    style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
    "ffffff", // Mouse Off Font Color
    "333333", // Mouse Off Background Color
    "000000", // Mouse On Font Color
    "ffffff", // Mouse On Background Color
    "000000", // Menu Border Color
    12, // Font Size in pixels
    "normal", // Font Style (italic or normal)
    "bold", // Font Weight (bold or normal)
    "tahoma", // Font Name
    1, // Menu Item Padding
    "arrow.gif", // Sub Menu Image (Leave this blank if not needed)
    3, // 3D Border & Separator bar
    "333333", // 3D High Color
    "333333", // 3D Low Color
    "", // Current Page Item Font Color (leave this blank to disable)
    "", // Current Page Item Background Color (leave this blank to disable)
    "images/arrow1.gif", // Top Bar image (Leave this blank to disable)
    "", // Menu Header Font Color (Leave blank if headers are not needed)
    "", // Menu Header Background Color (Leave blank if headers are not needed)
    ]

    style2=[ // style2 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
    "ffffff", // Mouse Off Font Color
    "333333", // Mouse Off Background Color
    "000000", // Mouse On Font Color
    "ffffff", // Mouse On Background Color
    "000000", // Menu Border Color
    9, // Font Size in pixels
    "normal", // Font Style (italic or normal)
    "normal", // Font Weight (bold or normal)
    "tahoma", // Font Name
    3, // Menu Item Padding
    1, // 3D Border & Separator bar
    "333333", // 3D High Color
    "333333", // 3D Low Color
    ]



    addmenu(menu=[ // This is the array that contains your menu properties and details
    "mainmenu", // Menu Name - This is needed in order for the menu to be called
    1, // Menu Top - The Top position of the menu in pixels
    , // Menu Left - The Left position of the menu in pixels
    142, // Menu Width - Menus width in pixels
    2, // Menu Border Width
    "top;center", // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
    style1, // Properties Array - this is set higher up, as above
    1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
    "center", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
    effect, // Filter - Text variable for setting transitional effects on menu activation - see above for more info
    0, // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
    1, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
    0, // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
    , // Position of TOP sub image left:center:right
    , // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
    , // Right To Left - Used in Hebrew for example. (1=on/0=off)
    , // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
    , // ID of the div you want to hide on MouseOver (useful for hiding form elements)
    , // Reserved for future use
    , // Reserved for future use
    , // Reserved for future use

    ,"&nbsp;&nbsp;&nbsp;DANNI ASHE&nbsp;","#",,"Danni Ashe",1
    ,"&nbsp;&nbsp;&nbsp;HOSTED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","show-menu=hosted","#","Hosted",1
    ,"&nbsp;&nbsp;&nbsp;DOWNLOADABLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","show-menu=downloadable","#","Downloadable",1
    ,"&nbsp;&nbsp;MODELS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","show-menu=models","#","Models",1
    ,"&nbsp;&nbsp;&nbsp;BANNERS/ADS/MISC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","show-menu=banners","#","Banners/Ads/Misc.",1

    ])

    addmenu(menu=["hosted",
    ,,115,1,"",style2,,"left",effect,,,,,,,,,,,,
    ,"&nbsp;Photo Gallerys</li>","http://www.myspace.com",,"Photo Gallerys",10
    ,"&nbsp;Video Gallerys</li>","#",,"Video Gallerys",1
    ,"&nbsp;Free Sites</li>","#",,"Free Sites",1
    ,"&nbsp;Pic of the Day</li>","#",,"Pic of the Day",1
    ,"&nbsp;Daily Naked Joke</li>","#",,"Daily Naked Joke",1
    ,"&nbsp;Daily Virtual Lap Dance</li>","#",,"Daily Virtual Lap Dance",1
    ,"&nbsp;Erotic Stories</li>","#",,"Erotic Stories",1
    ])


    addmenu(menu=["downloadable",
    ,,112,1,"",style2,,"",effect,,,,,,,,,,,,
    ,"&nbsp;Photos", "#",,"Photos",1
    ,"&nbsp;Galleries", "#",,"Galleries",1
    ,"&nbsp;Reviews", "#",,"Reviews",1
    ,"&nbsp;Video Trailers", "#",,"Video Trailers",1
    ,"&nbsp;Blog Entries", "#",,"Blog Entries",1
    ,"&nbsp;Ipod Videos", "#",,"Ipod Videos",1
    ])


    addmenu(menu=["models",
    ,,112,1,"",style2,,"",effect,,,,,,,,,,,,
    ,"&nbsp;Models", "#",,"Models",1
    ,"&nbsp;Models Bio Pages", "#",,"Models Bio Pages",1
    ,"&nbsp;Danni Ashe Marketing", "#",,"Danni Ashe Marketing",1
    ])


    addmenu(menu=["banners",
    ,,112,1,"",style2,,"",effect,,,,,,,,,,,,
    ,"&nbsp;Danni.com Niche Banners", "#",,"Danni.com Niche Banners",1
    ,"&nbsp;Flash Banners", "#",,"Flash Banners",1
    ,"&nbsp;Featured Banner/Gallery", "#",,"Featured Banner/Gallery",1
    ,"&nbsp;Floater Ads", "#",,"Floater Ads",1
    ,"&nbsp;Text Ads", "#",,"Text Ads",1
    ,"&nbsp;Logos", "#",,"Logos",1
    ,"&nbsp;Premade Exits", "#",,"Premade Exits",1
    ])



    dumpmenus()

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    404 on the page. Er.. actually "Can't find server".

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
  •