• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Attaching advertisements on links,(a href)

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you would have glanced at the code you would have see this



TADA the magic....

Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic