Attention: PROnetworks has upgraded our forum from phpbb2 to phpbb3!!

Please head over to our new converted forum at: http://www.pronetworks.org/forums/

This old forum will remain 'read-only' until approximately February 2009. We look forward to seeing you at the new forum!
Author Message
~Spider~
PostPosted: Thu Jun 10, 2004 12:31 am Reply with quote

PRO Level 16
 
 


Joined: 26 Feb 2004
Posts: 1751
Location: USA
Here is a good site with tutorials. I have used it quite a bit.

http://www.w3schools.com/
 
Back to top
Weaver
PostPosted: Thu Jun 10, 2004 10:40 am Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
shougan wrote:
Code:
<a href=""
target="_blank"> </a>


The only problem with using the target attribute is that it is not valid in the "Strict" document type HTML/XHTML.

So if you are interested in writing pages that conform to HTML 4.01 Strict, XHTML 1.0 Strict or XHTML 1.1 you will not [legally] be able to use the target attribute.

Since I try to use the Strict DTD's whenever I can I have found a few methods to get around the target attribute. One of them is extremely complex and I haven't used. It is only applicable to XHTML and involves extending the DTD to include a target attribute. It is a lot of work, but would technically be the "proper" way to achieve target like functionality (without JavaScript).

The second method is the easier method and involves a little bit of JavaScript. If the browser does not support JavaScript, then the link will open in the same window, so nothing is actually lost on old clients.

Lets say we want to create a link to slashdot.org . We want it to open in a new window. Lastly, we want it to conform to the Strict DTD's. The following code would accomplish our task.

Code:
<a href="http://www.slashdot.org" onclick="window.open(this.href); return false;">slashdot.org</a>


There you have it.

-Weaver
 
Back to top
imnuts
PostPosted: Thu Jun 10, 2004 11:00 am Reply with quote

Support Team
 
 


Joined: 24 Mar 2004
Posts: 14585
Location: Boothwyn, Pennsylvania
thank you weaver
 
Back to top
Neox
PostPosted: Thu Jun 10, 2004 3:26 pm Reply with quote

PRO New Member
 
 


Joined: 10 Jun 2004
Posts: 2
Location: UK
imnuts wrote:
I want to know if there is an html command that will open links in a new window when they are clicked. i think there is i just don't know what it is. if it can't be done with html, then what would i need to use to get the new window upon being clicked.


It's quite simple, the code for a simple URL is:

Code:

<a href="http://www.pronetworks.org">Open me in the same window!</a>


This takes the browser to www.pronetworks.org in the same window it is clicked in.

By adding the target="_blank" section to the hyperlink code will enabled it to open in a new window.

In case your still in doubt, the link to open www.pronetworks.org in a new window would be:

Code:

<a target="_blank" href="http://www.pronetworks.org">Open me in a new window!</a>


Hope this helps,

Kind Regards,

Neox.
 
Back to top
shougan
Sid Upadhyay
PostPosted: Thu Jun 10, 2004 7:49 pm Reply with quote

PRO GOLD
 
 


Joined: 26 Apr 2004
Posts: 5290
Location: Western Hemisphere
LOL thnx for informing me Weaver...LOL Gues my websites need to be up to ur lvl..LOL thnx again man...
 
Back to top
SamTranter
PostPosted: Sat Jun 12, 2004 9:55 am Reply with quote

Banned
 
 


Joined: 13 May 2004
Posts: 679
to proctect images, well it cant relley be done, there are codes that dis allow right clicking. but even then the images can still be aquired by goint to file>save as and that will save all links attached to that page, the only alternative that i have found is to put your image onto flash and make a swf, that way it connot be accuired
 
Back to top
jessee007
PostPosted: Sat Jul 03, 2004 2:57 am Reply with quote

PRO Level 2
 
 


Joined: 02 Jul 2004
Posts: 10
Location: humbolt county
I dont understand why you wouldnt want anything copied or saved? Remember anything transmited,anything recieved. Its not fair to try to stop the main part of a computer. How did you get your personal image? well enough of the scolding. You could write it into your program with a time out.
 
Back to top
Back to top

Goto page Previous  1, 2

Page 2 of 2

 


Tired of the Ads? Registered users have 80% less adverts.