Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redirect a hyperlink to new browser window
Message
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00230416
Message ID:
00230805
Views:
24
>>>Try this-no code at all, just html
>>>
>>>< a href=../whatever.htm Target=_blank >
>>
>>Ahhh hah! I played with target last night, but didn't try it with a _blank! Thanks Jeff! (Ya know, I'm surprised you and/or Erik aren't Sysops on this forum...)
>>
>>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!

I have used jscript and java in the past but any code that I can write and it actually runs, but I can't read it needs to trashed.

I hate JAVA. :)

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform