AlexChalk wrote:I tried to apply sleepless to my comic, but for come reason certain pages didn't show up properly which on other templates show up just fine. Any idea why this might be?


JavaLeen wrote:whaaaa... thank youuu! I snatched the 'cold' one... but I have one tiny problem...
the rating 'stars' list one under the other instead of lining up... and as much as I tried I just couldn't find the section where I can change this. >.<
please help? >.< (if this question was already answered than sorry, but please quote that post, because I must have slipped over it...)
<script language="JavaScript">
var dir = "http://www.smackjeeves.com/templates/default/images/";
var pic_unselected = "star-unselected.gif";
var pic_selected = "star-selected.gif";
// "Buffers" the image to the browser
document.write('<img style="display: none" src="' + dir + pic_unselected + '" />');
document.write('<img style="display: none" src="' + dir + pic_selected + '" />');
var default_rating = 0;
var rate_it_pic = "http://www.smackjeeves.com/templates/default/images/rate-it.gif";
function build_vote()
{
document.write('<img id="text" src="' + rate_it_pic + '" /><ul>');
for (n = 1; n<= 5; n++)
{
if (n <= default_rating)
{
default_pic = pic_selected;
} else {
default_pic = pic_unselected;
}
document.write('<li><a href="#" onClick="vote(' + n + '); return false;" onMouseOver="rateover(' + n + ');" onMouseOut="rateover(default_rating);"><img src="' + dir + default_pic + '" name="star_' + n + '"></a></li>');
}
document.write('</ul>');
}
function rateover(star_num)
{
for (n = 1; n <= 5; n++)
{
if (n <= star_num)
{
da_code = 'document.star_' + n + '.src="' + dir + pic_selected + '"';
} else {
da_code = 'document.star_' + n + '.src="' + dir + pic_unselected + '"';
}
eval(da_code);
}
}
function vote(rating)
{
var new_window = window.open("/ratecomic.php?cid=728363&rating=" + rating, "sj_ratecomic", "height=300, width=400");
new_window.focus();
}
</script>


Users browsing this forum: No registered users and 1 guest