Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Setting default img src
11-25-2011, 07:17 PM #1
- Join Date
- Nov 2011
- Thanked 0 Times in 0 Posts
Setting default img src
I am using a wordpress plugin which dynamically generates a thumnail url for a post.
I am displaying the top 9 posts(top 3 daily, top 3 weekly, and top 3 monthly) on my homepage along with their thumbnails. Each of the top three lists have their own tab that dynamically displays them when you click on the tab.
When someone mouses over the link to the post I have the thumbnail to the right of the link dynamically change to be that link's thumbnail.
Here is the code I have for the top 3 daily posts.
<div id="tabs-1"> <div style="width: 270px; float:left"><!-- Wordpress Popular Posts Plugin v2.1.6 [SC] [daily] [custom] --> <ol> <li><a id="one" href="http://link.com" title="Wowie" onMouseOver="setpage('thumb3', 'http://www.google.com', 'http://www.google.com/picture.jpg')"><span class="wpp-post-title">Wowie</span></a> <span class="wpp-post-time">( )</span></li> <li><a id="one" href="http://www.google.com/" title="Bow wow" onMouseOver="setpage('thumb3', 'http://www.google.com', 'http://www.google.com/04.jpg')"><span class="wpp-post-title">Bow wow</span></a> <span class="wpp-post-time">( )</span></li> </ol> <!-- End Wordpress Popular Posts Plugin v2.1.6 --> </div> <div style="width:180px; float:right; text-align:center; font-size:12px; color:blue"><a class="clicktoplay" href="#" onClick="gotopage(); return false;"><img src="" border="1" width="180" id="thumb1" />Click To Play</a></div> </div>
Last edited by jagwebby; 11-25-2011 at 11:22 PM.