zero-perfoliate
zero-perfoliate

Author Topic: cant get this to open in a new window  (Read 480 times)

Offline ChromeCrow

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
cant get this to open in a new window
« on: December 04, 2008, 07:25:50 AM »
i am adding a network bar
and no matter what i try i cant get the network links to open in a new window.

i did the standard TARGET="_blank", with all the variation i found, still nothing   here is the network bar code
Code: [Select]
/***********************************************************
                [First edit for NetworkBar]
***********************************************************/


    echo '<script>
   function change(url) {
    if(url != "") {
location = url;
    }
}
</script> ';


/***********************************************************
              [End of first edit for NetworkBar]
***********************************************************/

/**********************************************************
              [Second edit for NetworkBar]
**********************************************************/

echo '<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">

    <tr valign="middle">

        <td>

            <img src="images/top-banner.gif" width="250" height="25" border="0" alt=""></td>



        <td width="100%" height="25" align="right" valign="middle" background="images/networkbg.gif">



            <marquee scrolldelay="200"><span style="color: #FFFFFF; font-size: 12px;">

&loz;&loz;&loz;&loz;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<font color="f9b30b">Welcome to our site....</font>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Where Prophecy Comes Alive TODAY!...

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&loz;&loz;&loz;&loz;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

We are recruting for the game that we play

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&loz;&loz;&loz;&loz;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Come and join us on our site and be an active part of our community...

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&loz;&loz;&loz;&loz;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</span></marquee>

        </td>





<td height="25" align="right" valign="middle" background="images/networkbg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>



        <td height="25" align="right" valign="middle" background="images/networkbg.gif">

            <select style="background: rgb(30, 30, 30) none repeat scroll 0%; width: 230px; font-size: 11px; color: white; border-color: #FFFFFF;" onChange="return change(this.options[this.selectedIndex].value);">

                <option value="">Prophecy NetWork Sites</option>

                <option value=""></option>

<option value="">******************************</option>

                <option value="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prophecy Sites</option>

                <option value="">******************************</option>

            <option value="http://prophecytoday.com"target="_blank">Prophecy Today</option>
            <option value="http://www.tomorrowsworld.org"TARGET="_blank">Tomorrows World</option>
                <option value="http://www.hallindsey.com"TARGET="_blank">Hal Lindsey</option>
                <option value="http://www.prophecyupdate.com"TARGET="_blank">Prophecy Update</option>
                <option value="http://www.pre-trib.org"TARGET="_blank">Pre-Trib</option>
            <option value="http://www.bible-prophecy.com"TARGET="_blank">Bible Prohecy.com</option>
            <option value="http://www.jvim.com/update"TARGET="_blank">Jack Van Impe Ministries</option>
                <option value="http://www.raptureready.com"TARGET="_blank">Rapture Ready</option>
                <option value="http://www.prophecyforum.com"TARGET="_blank">Prophecy Forum</option>
                <option value="http://www.raptureforums.com"TARGET="_blank">Rapture Forums</option>
                <option value="http://bibleprophecy.net"TARGET="_blank">Bibleprophecy.net</option>
                <option value="http://www.danielrevelationbiblestudies.com"TARGET="_blank">Daniel Revelation Bible Studies</option>
                <option value="http://www.endtime.com"TARGET="_blank">End Time Ministries</option>
                <option value="http://www.endoftheworldprophecy.com"TARGET="_blank">End of the World</option>
                <option value="http://www.tribulation.com"TARGET="_blank">Tribulation.com</option>

<option value=""></option>

                <option value="">******************************</option>

                <option value="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Christian Sites</option>

                <option value="">******************************</option>

                <option value="http://hosting.s4ndmod.com/">S4NDMOD Hosting</option>

<option value=""></option>

<option value="">******************************</option>

<option value="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Christian Products & Services</option>

                <option value="">******************************</option>

                <option value="http://www.clan-themes.co.uk/283-0-1-14.html">Clan-Themes</option>

<option value="http://www.disipal.net">Disipal Designs</option>

<option value="http://www.dbfdesigns.net">Driven By Faith Designs</option>

               

            </select>

         

        </td>

    </tr>



</table>';

/**********************************************************
             [End econd edit for NetworkBar]
**********************************************************/


i did not finish changing the links and editing some of the scrolling text that was already in the code when i got it,  but the first section you see by the target=_blank, where i left off

Offline PhPHelper

  • http://Digiscapers.com
  • Full Member
  • PHP Problem Solvers
  • ****
  • Posts: 179
  • Karma: +50/-0
    • Bad Apple Mail
Re: cant get this to open in a new window
« Reply #1 on: December 16, 2008, 05:55:57 PM »
Your trying to get a drop down selection to open in a new window but since this is a form element it is not possible without using JavaScript.

Have a look at this http://www.pageresource.com/jscript/jwinopen.htm

scroll down and you'll see this section:

Code: [Select]
<FORM>
<INPUT type="button" value="New Window!" onClick="window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow','width=400,height=200,toolbar=yes,
location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,
resizable=yes')">
</FORM>

Think you should be able to solve your problem from there.