Results 1 to 4 of 4

Thread: this code is having problems uploading using frontpage.

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

    Default this code is having problems uploading using frontpage.

    hi whats up this code i got from this site is having problems uploading in frontpage however total command it works fine in i need this to upload in frontpage so that i can edit it freely,

    here is the code
    <form name="jumpy">
    <p align="center">
    <select name="example" size="1" onChange="gone()">
    <!-- CHANGE THE BELOW URLS TO YOUR OWN-->
    <option value="stock/Live_Quote/index.html" selected>Test</option>

    <option value="http://www.yahoo.com">Yahoo.com</option>
    <option value="http://www.google.com">Google</option>
    <option value="http://www.lycos.com">Lycos</option>
    <option value="http://www.AltaVista.com">AltaVista</option>
    </select>

    <input type="button" name="test" value="Go!"
    onClick="gone()">
    </p>
    </form>

    <script language="javascript">
    <!--

    //Drop-down Document Viewer- © Dynamic Drive (www.dynamicdrive.com)
    //For full source code, 100's more DHTML scripts, and TOS,
    //visit http://www.dynamicdrive.com

    //Specify display mode (0 or 1)
    //0 causes document to be displayed in an inline frame, while 1 in a new browser window
    var displaymode=0
    //if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown
    var iframecode='<iframe id="external" style="border:0;frameborder:0;width:95%;height:300px" src="stock/Live_Quote/index.html"></iframe>'

    /////NO NEED TO EDIT BELOW HERE////////////

    if (displaymode==0)
    document.write(iframecode)

    function gone(){
    var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
    if (document.getElementById&&displaymode==0)
    document.getElementById("external").src=selectedurl
    else if (document.all&&displaymode==0)
    document.all.external.src=selectedurl
    else{
    if (!window.win2||win2.closed)
    win2=window.open(selectedurl)
    //else if win2 already exists
    else{
    win2.location=selectedurl
    win2.focus()
    }
    }
    }
    //-->
    </script>

    if any one can help that would be great

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I suggest you abandon FrontPage. WYSIWYG editors as a whole are a bad idea, and FrontPage is definitely one of the worst of the lot.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    Default

    well i did want to go with dreamweaver but it seems hard to use do you know of any where that will give a user manual or something and could you help me wit hmy last post about the stock market codes thanks

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

    Default

    DW is pretty good. It's still nothing compared to coding html by hand.
    And, frontpage really is just ugly. It's designed not to work with anything but IE (almost on purpose, certainly that it's isn't purposefully designed to be compatible). Scripts are frequently changed in it.
    If nothing else, just try editing this particular page in notepad... see where that lands you.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •