javascript help...names on buttons

Discussion in 'Web Design and Development' started by pelsar, Mar 7, 2009.

  1. pelsar macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #1
    i've put together this page, found the appropriate javascript, put in the CSS BUT...the names on the buttons show the path to the swf files.

    How can i remove the paths from the buttons but still retain the actual path to the folder with the swfs?

    http://www.spinnerdesign.co.il/flash_examples.html
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Use hidden form fields:

    HTML:
    <input type="hidden" name="val-1" id="val-1" value="flash_examples-all/celtro.swf" />
    <input type="button" value="Button 1" size="30" onclick="showSWFPreview(document.getElementById('val-1').value)" /><br />
    
    <input type="hidden" name="val-2" id="val-2" value="flash_examples-all/surecomp.swf" />
    <input type="button" value="Button 2" size="30" onclick="showSWFPreview(document.getElementById('val-2').value)" />
     
  3. pelsar thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
  4. pelsar thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #4
    buttons are ugly....

    seems the buttons are pretty ugly so i prefer simple text links....I'm sure its a a simple change, and i went "googling" but the answers i'm getting all involve changing the text on the buttons (I'm obviously phrasing my question wrong)....so I'm back:

    how to make the buttons in to simple text links but without the "box" around it.

    http://www.spinnerdesign.co.il/flash_examples.html
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    HTML:
    <input type="hidden" name="val-1" id="val-1" value="flash_examples-all/celtro.swf" />
    <input type="text" value="Celtro 3D data       " size="30" onclick="showSWFPreview(document.getElementById('val-1').value)" /><br />
    becomes
    HTML:
    <a href="flash_examples-all/celtro.swf" onclick="showSWFPreview(this.href); return false;">Celtro 3D data</a>
     
  6. pelsar thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #6
  7. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    Your passing the function jpg, but it's expecting swf files. I think that's the issue.
     
  8. pelsar thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #8
    its not the swfs...

    i considered that but i have the same coding here, where they are infact swfs that are being brought in....

    http://www.spinnerdesign.co.il/flash_examples.html


    and only in firefox are they not working....
     

Share This Page