Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open window script 1

Status
Not open for further replies.

flasher

Technical User
Mar 4, 2002
245
0
0
US
Hi, can someone give me a script that'll open a simple window that'll open by clicking on the star that is on this page:


For some reason, b/c it has a fireworks rollover action, I can't figure out how to put a second onClick action that opens the window.

The image already has the following href for the rollover so where do you put the window href??

<a href=&quot;#&quot; onMouseOut=&quot;MM_nbGroup('out');&quot; onMouseOver=&quot;MM_nbGroup('over','cartoon2_r7_c12','../subimages/cartoon2_r7_c12_f2.gif','../subimages/cartoon2_r7_c12_f4.gif',1);&quot; onClick=&quot;MM_nbGroup('down','navbar1','cartoon2_r7_c12','../subimages/cartoon2_r7_c12_f3.gif',1);&quot; ><img name=&quot;cartoon2_r7_c12&quot; src=&quot;../subimages/cartoon2_r7_c12.gif&quot; width=&quot;136&quot; height=&quot;135&quot; border=&quot;0&quot;></a>

I need help desperately! Can someone look at the code and tell me exactly where and what script to insert?? It's probably so simple that I don't know why I can't figure it out.

(If I remove the fireworks code so that the star doesn't have the rollover anymore, than I can open a window but I can't get the window to work simultaneously with the rollover...)

I would like to be able to insert regular text into the window. not an image.

Thanks in advance!
 
Hey Flasher....

You can execute 2 different javascript functions by seperating them with ';'!

You would replace your code with the one below... and replace the GOOGLE link with the one that you want to open in the new window...

<a href=&quot;#&quot; onMouseOut=&quot;MM_nbGroup('out');&quot; onMouseOver=&quot;MM_nbGroup('over','cartoon2_r7_c12','../subimages/cartoon2_r7_c12_f2.gif','../subimages/cartoon2_r7_c12_f4.gif',1);&quot; onClick=&quot;window.open(' 'Popup', width=640, height=480, scrollbars='yes', resizable='yes' );MM_nbGroup('down','navbar1','cartoon2_r7_c12','../subimages/cartoon2_r7_c12_f3.gif',1); &quot; ><img name=&quot;cartoon2_r7_c12&quot; src=&quot;../subimages/cartoon2_r7_c12.gif&quot; width=&quot;136&quot; height=&quot;135&quot; border=&quot;0&quot;></a>

guess this helped? eh? Sham aka boolean... be practical/be straight... true/false?!
 
Awesome. I knew there had to be a simple way to do it. Thanks a million. One thing...I was able to put in my own page but can you tell me why I'm not able to change the size of the window? it's remaining at the size that you set it...? 640 by 480.
 
use this piece of code!

<a href=&quot;#&quot; onMouseOut=&quot;MM_nbGroup('out');&quot; onMouseOver=&quot;MM_nbGroup('over','cartoon2_r7_c12','../subimages/cartoon2_r7_c12_f2.gif','../subimages/cartoon2_r7_c12_f4.gif',1);&quot; onClick=&quot;window.open(' ,height=480,scrollbars=Yes,resizable=Yes,menubar=No,toolbar=No,status=No'); MM_nbGroup('down','navbar1','cartoon2_r7_c12','../subimages/cartoon2_r7_c12_f3.gif',1); &quot; ><img name=&quot;cartoon2_r7_c12&quot; src=&quot;../subimages/cartoon2_r7_c12.gif&quot; width=&quot;136&quot; height=&quot;135&quot; border=&quot;0&quot;></a> Sham aka boolean... be practical/be straight... true/false?!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top