Is it possible to show an image and link IF a some type of tag is repeated enough times? For example, my search results returns ten items per page and I want to insert HTML after the 5th item.
Each item is in a template that gets repeated over and over again on the results page.
Is it possible to add some type of javascript incremental counter in the template that gets repeated and then another javascript tag that says IF COUNTER=5 THEN WRITE= <a href="#"><img src=""></a> but IF COUNTER IS <5 OR >5 THEN WRITE=""
???
Has anyone ever done anything like this? IF so can you please point me in the right direction.
Each item is in a template that gets repeated over and over again on the results page.
Is it possible to add some type of javascript incremental counter in the template that gets repeated and then another javascript tag that says IF COUNTER=5 THEN WRITE= <a href="#"><img src=""></a> but IF COUNTER IS <5 OR >5 THEN WRITE=""
???
Has anyone ever done anything like this? IF so can you please point me in the right direction.