1) Script Title: Switch Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem: I am using Switch Content here for articles: http://ca.homeownertrends.com/timhemm/articles-maintenance.php
The issue is that when an article is opened by tapping on the TOP article preview (using Switch Content), the LOWER article preview (for the next article in sequence) opens to the bottom of that article ~ in other words, the LOWER article block opens at the end of the article.
I need to integrate an anchor that will focus the Switch Content script to jump back to the top of the article similar to what was implemented here (using Dynamic Ajax script): http://ca.homeownertrends.com/timhemm/feature-homescreen_instructions.php
The Dynamic Ajax script uses 'a href' in the inline JavaScript, so I could make it work there, but the Switch Content script does not use 'a href'. Here is a block of code from the article page. You can see how Switch Content is applied.....
Code:<div id="article3-title" class="iconspan handcursor"> <div class="articleHeader-block"> <div class="articleHeader-position"> <header class="articleHeader"> <img src="http://aaaa.homeownertrends.com/content/symlink-articles/maintenance/when-your-freezer-stops-working/when-your-freezer-stops-working.png" class="articleHeader-image" /> When Your Freezer Stops Working <p class="articleHeader-description"> Step-by-step instructions to help you preserve and managed food in your freezer when it breaks (or if you need to unplug it for a period of time). </p> </header> </div> <div id="article3" class="articlegroup1"> <?php include("symlink-articles/maintenance/when-your-freezer-stops-working/when-your-freezer-stops-working.php"); ?> </div> </div> </div>
Thank you for any assistance you can provide.



Reply With Quote

Bookmarks