How can i display the div on loop

davidantique

New Member
for instance i have a link id which is equal to news1 or news2 and so on! what happens is that if i hover my mouse on the link it displays its information like this\[code\]<div id="nc1"><table><tr><td colspan="2">Nulla venenatis rhoncus libero ac interdum. </td></tr><tr> <td colspan="2">is a long established fact that a reader will be distracted by the <br>readable content of a page when looking at its layout. <br>The point of using Lorem Ipsum is that it has a more-or-less normal <br>distribution of letters, as opposed to using 'Content here, content here', <br>making it look like </tr><tr><td><a href="http://stackoverflow.com/questions/13812701/#" id="hide">Hide</a></td><td>Read More</td></tr> </table></div>\[/code\]this is my script\[code\]$("#news1").hover(function(){$("#nc1").fadeIn();});\[/code\]how can i loop this links without making them a function\[code\] <td><a id="news1" href="http://stackoverflow.com/questions/13812701/#">Nulla venenatis rhoncus libero ac interdum. </a></td></tr><tr><td>Decemeber 09,2012</td><td><a id="news2" href="http://stackoverflow.com/questions/13812701/#">Proin gravida placerat nulla, euismod consectetur mauris tincidunt a. </a></td></tr><tr><td>Decemeber 09,2012</td><td><a id="news3" href="http://stackoverflow.com/questions/13812701/#"> euismod consectetur mauris tincidunt a. </a></td></tr>\[/code\]
 
Back
Top