ЕСТЬ ГАЛЕРЕЯ НА PHP ХОЧУ ПОМЕНЯТЬ НА ДРУГУЮ НО НЕ ЗНАЮ КАК, ПОМОГИТЕ!!!!!
Вот код которая стоит
PHP код:
<script type="text/javascript" src="<?=$h?>js/imgslider/jquery.ad-gallery.pack.js"></script>
<link type="text/css" href="<?=$h?>js/imgslider/jquery.ad-gallery.css" rel="stylesheet" />
<script type="text/javascript">
jQuery(function() {
var galleries = jQuery('.ad-gallery').adGallery();
jQuery('#switch-effect').change(
function() {
galleries[0].settings.effect = none;
return false;
}
);
jQuery('#toggle-slideshow').click(
function() {
galleries[0].slideshow.toggle();
return false;
}
);
jQuery('#toggle-description').click(
function() {
if(!galleries[0].settings.description_wrapper) {
galleries[0].settings.description_wrapper = jQuery('#descriptions');
} else {
galleries[0].settings.description_wrapper = false;
}
return false;
}
);
});
</script>
<script type="text/javascript">
jQuery(function() {
jQuery('a#getContacts').click(function(){
var pId = jQuery('a#getContacts').attr('class');
jQuery('#placeForConacts').html(ind);
jQuery.post("<?=$h?>core/get_contacts.php", {id: pId},
function(data){jQuery('#placeForConacts').html(dat a);
});
return false;
});
});
</script>
<?
if ($ads['checkbox_top']) $checkbox_top="_top";
if ($ads['checkbox_select']) $checkbox_select="_select";
?>
<div id="message<?=@$checkbox_select?><?=@$checkbox_top ?>">
<?
if ($ads['cat_fields']=="<b>:</b> <span></span><br/>") {$ads['cat_fields']="";} else {$ads['cat_fields']=$ads['cat_fields'];}
if ($ads['contacts']) {
$printcontacts = "<div id=\"placeForConacts\"><span class='cntlink'><a class=\"".$ads['board_id']."\" href=\"#\" id=\"getContacts\"><strong>".$lang['showcnt']."</strong></a></span></div>";
} else $printcontacts="";
$printmail=(@$ads['email'])?"<br /><div id=\"mailto\">".$lang[150].": <a href=\"#\" onclick=\"sendFormMailToUser('','','','".$ads['board_id']."');return false;\" class='cntlink'>".$lang[194]."</a></div>":"";
$printurl=(@$ads['url'])?$lang[546].": <a class='cntlink' target=\"_blank\" rel=\"nofollow\" href=\"".$h."goto-".$ads['board_id'].".html\">www.".$ads['url']."</a> <span class=\"sm\">".$lang[547].": ".$ads['click']."</span>":"";
if(($ads['time_delete']*86400+$ads['unix_time']) > time()){
if($ads['dat']==date("d.m.Y")) $printdate=$lang[542];
else $printdate=$lang[127].": ".$ads['dat']." ".$lang[543].".";
$printdate.=" (".$lang[544].": ".strftime( '%d.%m.%Y', $ads['time_delete'] * 86400 + $ads['unix_time'])." ".$lang[543].".)";
}else{
$printdate=$lang[1013];
if($c['view_nonactiv_contacts']=="no"){$printcontacts="";$printmail="";$printurl= "";}
}
if($ads['type']=="s")$type_tit=$lang[414];elseif($ads['type']=="p")$type_tit=$lang[413];elseif($ads['type']=="u")$type_tit=$lang[800];elseif($ads['type']=="o")$type_tit=$lang[801];elseif($ads['type']=="a")$type_tit=$lang[2013];elseif($ads['type']=="v")$type_tit=$lang[2014];elseif($ads['type']=="r")$type_tit=$lang[2015];else echo"";
echo "<div class=\"sm gray\" style=\"padding-top:5px\">".$printdate."</div>";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<?
$photocount=adv_photo_count($ads['board_id']);
if ($photocount) {
?>
<div class="message_photo">
<div class="message_phototit"><?=$lang['advphoto']?></div>
<div style="margin-bottom: 15px;">
<div class="ad-gallery">
<a class="thumbclose" href="#" style="display: none" OnClick="jQuery('.ad-image-wrapper').hide();jQuery('.thumbclose').hide();"></a>
<div id="thumb-image" class="ad-image-wrapper" style="margin: 0; display: none;"></div>
<div class="ad-nav">
<div class="ad-thumbs">
<ul <? if ($photocount==1){?>style="text-align: center"<?}else{?>class="ad-thumb-list"<?}?>>
<?
$photo=mysql_query("SELECT photo_name FROM jb_photo WHERE id_message='".$ads['board_id']."'"); cq();
if(@mysql_num_rows($photo)){
while($list_photo=mysql_fetch_assoc($photo)){
$isize=getimagesize($u."small/".$list_photo['photo_name']);
echo "<li";
if ($photocount==1){echo "style='display:inline-block;float:none'";}
echo ">";
echo "<a href=\"".$u."normal/".$list_photo['photo_name']."\" rel=\"lightBox\" OnClick=\"jQuery('.ad-image-wrapper').show();jQuery('.thumbclose').show();\">
<img alt=\"".$ads['title']."\" src=\"".$u."small/".$list_photo['photo_name']."\" width=\"100px\" />
</a>";
echo "</li>";
}
}
?>
</ul>
</div>
</div>
Вот код на которую хочу поменять но не знаю как
<link type="text/css" rel="stylesheet" href="style.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<div id="slider" class="slider_wrap">
<div>
Пожалуйста, оформляйте Ваш код согласно правилам.