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:
00230824
Views:
31
>>>>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

Yeah, I know, but how else are you going to get these results? If I could stay in FoxPro and do everything, believe me, I'd be there. I love being able to trace through code. However, I have made a concious decision not to put errors or bugs in my code, therefore I don't have to debug. Of course, there are those occasions where the "undocumented feature" creeps in!< G >
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform