Welcome to WebmasterWorld Guest from 184.73.112.180

Forum Moderators: not2easy

How Does Copied Content Automatically Include a Read More Link?

   
2:47 am on Feb 10, 2010 (gmt 0)

10+ Year Member



I am wondering if someone can educate me on how a certain web function is programmed into content. Here is the situation: I was visiting a Time magazine business page and decided to copy a couple of sentences to include in my blog (referenced of course). When I copied and then pasted I noticed that it automatically included a Read More link (includes full URL). So I tried it again this time with less than a full sentence and again the Read More link is included. I tried again with only a few words and this time no Read More link.

So my question, how exactly do they do this? I assume there is some minimum word count needed before the Read More link is included.
3:50 am on Feb 10, 2010 (gmt 0)

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



A sentence or two might be okay under fair use, but I do have to ask if you've actually looked at the underlying words/code that got copied? I always look at whatever I cut and paste. Merely a heads up.
1:47 pm on Feb 10, 2010 (gmt 0)

10+ Year Member



Thanks, but my point is how do they do this so the Read More shows automatically when it is copied and pasted? I did look at the code and can't tell how this is done.
8:07 pm on Feb 10, 2010 (gmt 0)

5+ Year Member



PaulPA,
What do you mean by "I copied"? How did you copy this content?
In any case look at the source of the page (HTML) and try to get what you need from there or first paste to Notepad, edit then copy and paste to your site.
8:38 pm on Feb 10, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



you can do it with javascript. there's a site called tynt that does it for you if you don't mind adding their script.
8:52 pm on Feb 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've seen that as well. It's on some major media sites. When you mark a sentence or two with the mouse and choose "copy" what is copied to the clipboard is your selection plus something extra, including a link to the page.

Al londrum wrote above, it's javascript. It's not all that complicated but it's rather annoying IMHO (I prefer to add and format the links myself).
9:02 pm on Feb 10, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



I have a script in Visual Basic for ASP pages that does it if that is the language your site is in.
9:13 pm on Feb 11, 2010 (gmt 0)

10+ Year Member



Thanks to all. I'm not sure I'm really interested in adding it to my site as it is annoying. I was more curious as to how it is done.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month