That's not valid PHP code unless the entire string is in double quotes, and even if it is it would have to be being written server side, and featured.ID would have to be defined. If it's not double quoted and written by the server, it would have to be something like:
Code:
animatedcollapse.addDiv('item<php echo featured.ID; ?>','speed=1,fade=0,persist=0,hide=1')
In other words, you haven't shown enough of the PHP code for me to tell. I'm not seeing any error notices in the served source code though. But you might have them turned off. Or feastured.ID may be resolving to a blank string.
What I do see is:
Code:
<script type="text/javascript">
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
animatedcollapse.addDiv('kelly', 'fade=1,height=100px')
animatedcollapse.addDiv('shownews','speed=1,fade=0,persist=0,hide=1')
animatedcollapse.addDiv('showforgot','speed=1,fade=0,persist=0,hide=1')
animatedcollapse.addDiv('showcurrency','speed=1,fade=0,persist=0,hide=1')
animatedcollapse.addDiv('item','speed=1,fade=0,persist=0,hide=1')
animatedcollapse.addDiv('item2','speed=1,fade=0,persist=0,hide=1')
animatedcollapse.addDiv('cat', 'fade=0,speed=400,group=pets')
animatedcollapse.addDiv('dog', 'fade=0,speed=400,group=pets,persist=1,hide=1')
animatedcollapse.addDiv('rabbit', 'fade=0,speed=400,group=pets,hide=1')
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
//$: Access to jQuery
//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
//state: "block" or "none", depending on state
}
animatedcollapse.init()
</script>
So, if that's (the highlighted line) where you have:
Code:
animatedcollapse.addDiv('item{featured.ID}','speed=1,fade=0,persist=0,hide=1')
it's not resolving on the server side.
Bookmarks