Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attaching advertisements on links,(a href)

 
JasmineS Saeid
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

There are many site presently that have the effect as the one pasted below.
http://www.financialexpress.com/fe_full_story.php?content_id=92456

The page gets rendered normally at first and then after a little while some normal text gets converted to links (<a href> ?

Curious to know if this is achieved by parsing the entire document thr Javascript in the 2nd pass and then deciding on some server o/p on which words (normal text) to show links ???

Contributions on this topic would be appreciated

Jasmine .
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you have misinterpreted the situation.
The link that you are talking about are a hrefs from the start itself.
Their styles are altered to give it the illusion of text and when you take the mouse over it it becomes underlined and becomes link.
For more information do a view source on the page and analyse how they have done it. It could be very informative to view the source of a page which you feel is working magically.
 
Paul Clapham
Sheriff
Pie
Posts: 20750
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to start up Internet Explorer to see what you were talking about. If you look at the source for the page you will see that those strangely-underlined things are not <a href="..."> links at all. And if you look at the little box that pops up when you mouse over one of them, you'll see at the bottom right corner "what's this?". I believe that was your question. Have you tried clicking on that?
 
JasmineS Saeid
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Exactly Paul,

Thanks for ur efforts of viewing the site to get my point.
Now u see Paul, the text is a normal text as seen after doing a "view source".

But this text is getting changed to have a mouse over which displays a small pop up window with the Add content(link). on clicking this link the user is directed to the advertiser's web site.
Any idea how this is accomplished ?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you would have glanced at the code you would have see this



TADA the magic....

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic