|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
how does it do this
if i go here: http://www.dailymail.co.uk/sciencete...olf-image.html
and select the title text only > COPY and PASTE here, i get Probe launched over claims winner of Wildlife Photographer of the Year faked wolf image Read more: http://www.dailymail.co.uk/sciencete...olf-image.html which is pretty clever because it gives a link back, if i check the source, firefox just shows that the title is selected. where does it get the link back from? |
#2
|
||
|
Ooooh now that is pretty clever, i'd like to know the answer to this as well ;P
EDIT: If i paste into the address bar in chrome, it pastes the same as here, with the 'read more' bit as well. |
#3
|
||
|
Probably in Javascript
__________________
|
#4
|
||
|
Code:
<!-- SiteCatalyst code version: H.20.3. Copyright 1997-2009 Omniture, Inc. More info available at http://www.omniture.com --> <script type="text/javascript"><!-- /* You may give each page an identifying name, server, and channel on the next lines. */ s_domain = (document.location.hostname.indexOf('mailonsunday') > -1) ? 'mailonsunday' : 'dailymail'; s.channel='/' + s_domain; s.pageName=s.channel + '/sciencetech/article'; s.prop1='/sciencetech'; s.prop2='/sciencetech'; s.prop3=''; s.prop4='article'; s.prop5='Wildlife Photographer of the year winner allegedly faked wolf image\n'; s.prop6='1237468'; s.prop7=''; s.prop8=''; s.prop9=''; s.prop10=''; s.prop11= $T.getCookie('authid') ? 'Logged In' : 'Logged Out'; s.prop17=''; s.prop18=''; s.prop19=''; s.prop20=''; s.prop21= $T.getCookie('userid') ? $T.getCookie('userid') : ''; s.prop22= ''; // Partner ID here: (self != top) ? ... : ''; s.products=''; /* Hierarchy Variables */ s.hier2=s_domain + s.prop2; /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ var s_code=s.t();if(s_code)document.write(s_code)//--></script> <script type="text/javascript"><!-- if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-') //--></script><!--/DO NOT REMOVE/-->
__________________
|
#5
|
||
|
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#6
|
||
|
It is pretty simple to do... they just use something like getElementById or one of the similar ones in Prototype or Jquery for classes notice the class of the div sorrounding the <h1>?
They may even have a event handler trigger on the entire document for when you hit control + c
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|