замена в параметре ротации
Posted: Wed Nov 26, 2014 7:57 pm
Здравствуйте, ебался и заебался, решил сюда писать
заменяю в параметре x на #
это в комон.пхп
if (isset($_GET['a'])) {
$_GET['link'] = 'images/' . str_replace('#', 'x', $_GET['a']);
}
саб:
<div class="item"><a href="/<!--GALLERY_SLUG-->.html" rot_id='<?=$my_var = str_replace('x', '#', '<!--THUMB_LINK-->');?>'" title="<!--ALT-->" target="_blank">
на всякий случай:
$(document).ready(function(){
$('a').each(function(){
if ($(this).attr('rot_id')) {
$(this).bind('click', function(){
$(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id'));
$(this).unbind('click');
});
}
});
});
урл получается вроде так как надо, но не считает клики -ротация-
trip-flash.html?4#2#659
помогите 3 день мучаюсь
заменяю в параметре x на #
это в комон.пхп
if (isset($_GET['a'])) {
$_GET['link'] = 'images/' . str_replace('#', 'x', $_GET['a']);
}
саб:
<div class="item"><a href="/<!--GALLERY_SLUG-->.html" rot_id='<?=$my_var = str_replace('x', '#', '<!--THUMB_LINK-->');?>'" title="<!--ALT-->" target="_blank">
на всякий случай:
$(document).ready(function(){
$('a').each(function(){
if ($(this).attr('rot_id')) {
$(this).bind('click', function(){
$(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id'));
$(this).unbind('click');
});
}
});
});
урл получается вроде так как надо, но не считает клики -ротация-
trip-flash.html?4#2#659
помогите 3 день мучаюсь