You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
Anril13
Помогите доработать скрипт голосования.
Так выглядит код одного из объектов для голосования:
<h3 align="center">Автомобили для голосования:</h3> {foreach key=id item=item from=$cars} <div class="auto_block" style="float:right"> <div class="auto_ublock" style="background: url(/images/box/usercars/small/{$item.image}) no-repeat center;"> <div> <span id="votelink-{$item.id}">{$item.votelink}</span> </div> </div><a href="/box/{$item.login}/view/{$item.seolink}.html" title="{$item.title}"> <span class="models_title">{$item.title}</span><br /></a> </div> {/foreach}По идее должна быть кнопка голосования. Эта кнопка отправляет данные в яваскрипт:
function doRate(kvote, kitem_id){ $("#voting"+kitem_id).html("<div>Отправка...</div>"); $("#voting"+kitem_id).load("/components/box/ajax/rating.php", {item_id: kitem_id, vote: kvote}); } function doSubscribe(auto_id){ $("#subscribe"+auto_id).load("/components/box/ajax/subscribe.php", {a_id: auto_id}); } function doTopVote(c_id){ $("#votelink-"+c_id).html("<div>Отправка...</div>"); $("#votelink-"+c_id).load("/components/box/ajax/rating.php", {car_id: c_id}); }Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.