#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    12
    Rep Power
    0

    linking a picture thru JavaScript to open a flash movie in a new window


    i am trying to link a picture to link through JavaScript to open a flash website in a new window...and im havin some hangups
    here is my code:

    <Script Language= "JavaScript">
    <!--
    function newWindow() {
    masterWindow= window.open("master.html", "van chadwick martin's web fusion", "width=750, height=400");
    masterWindow.focus();
    }
    // -->
    </script>

    -------------------------------------------------------------------

    <td><a href="JavaScript: newWindow()"><img name="ploppy2_r1_c3" src="ploppy2_r1_c3.jpg" width="265" height="206" border="0"></a></td>

    i think i might be getting over my head for a beginner
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    i think i might be getting over my head for a beginner
    lol

    Not much...just watch those window names:

    "van_chadwick_martins_web_fusion"

    ...no spaces or punctuation.

    var masterWindow = null;
    function newWindow() {
    masterWindow = window.open("master.html", "van_chadwick_martins_web_fusion", "width=750,height=400");
    if (masterWindow && !masterWindow.closed) masterWindow.focus();
    }
    // -->
    </script>

    -------------------------------------------------------------------

    <td><a href="javascript&#58;void newWindow()"><img name="ploppy2_r1_c3" src="ploppy2_r1_c3.jpg" width="265" height="206" border="0"></a></td>

IMN logo majestic logo threadwatch logo seochat tools logo