For this script to work, it needs two items. If there is only one, the only options I can think of (still using the script) would be to use the same item twice or to have the second one be blank or the name of the site or some stock thing.
You could also choose to have, if there is only one item, to skip the script and just present the item as static content.
If you are generating the content, as you say, you could deal with that server side. In the script you could do something like:
Code:
if (!pausecontent2[1])
pausecontent2[1]=" ";
Have that right after the array. You could put whatever you want in place of the space or just leave it as is. For the same item twice:
Code:
if (!pausecontent2[1])
pausecontent2[1]=pausecontent2[0];
Bookmarks