Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Redirect a hyperlink to new browser window
Message
Information générale
Forum:
Internet
Catégorie:
HTML
Divers
Thread ID:
00230416
Message ID:
00230837
Vues:
23
>>We don't need no stinking jscript =D)
>
>Yes you do! What if you don't want the second window to have scrollbars, buttons, etc. or the inverse. Javascript is a lot like VFP code and the code used to create the second window is pretty straight forward. First, each image's href is something like this: (replace imagex... with img.... below)
>
>Where your [a href="javascript:doImage('GONZO.JPG')"] [image src="gonzo.gif"]
>
>The function you call is something like this:
>
function doImage(src)
>{
>imgwin=window.open(src,"image","resizable=yes,toolbar=no,directory=no,autoscroll=yes");
>}
>
>I create this entire page using VFP code that requires two image files for each photo (one jpg and one gif.) This way you initially load a gif and when the click event fires, it passes the jpg to the doImage function. Pretty simple huh! There's a whole bunch of effects you can add that will fire on mouseover and such to boot. Better get some Javascript!

Wow that is pretty simple... and yours end result is much cleaner than mine is currently (now that I added the target="_blank" to all my photo album pages). Once I get my threaded guestbook deal on the oRox.MsgBoard() page working, I'll probably come back to this & see if I can get it to work in FP.

Thanks John!
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform