- Katılım
- 3 Ağustos 2010
- Mesajlar
- 12
- Reaction score
- 0
Aşağıya yapıştırdığım kodlar sitenin belli sayfalarında görüntüleniyor. Mesela ana sayfada sadece en son girdiğim kayıt olarak görünüyor. Normalde girilmiş olan kayıtların sırayla görüntülenmesi gerekiyor. Belli bazı sayfalarda normal kayırlar geçiyor sorunsuz çalışıyor. Bunu bütün sayfalarda normal çalışır hale nasıl getirebilirim. Saygılar...
Kodlar................................................................................................
<%
'-----------------------------------------------------------------------------------------------------------------------
Set haberliste1_RS = Server.CreateObject( "ADODB.Recordset" )
haberliste1_RS.ActiveConnection = Baglanti
haberliste1_RS.CursorType= adOpenStatic
haberliste1_RS.Open "Select * From haberler ORDER By id DESC"
'-----------------------------------------------------------------------------------------------------------------------
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta content="tr" http-equiv="Content-Language">
<script src="../../../inetpub/wwwroot/scripts/jquery1.js"></script>
<script type="text/javascript" src="../../../inetpub/wwwroot/scripts/haber.bxSlider.js"></script>
<script>
function stoperror(){
return true
}
window.onerror=stoperror
</script>
<script type="text/javascript" charset="UTF-8">
$(document).ready(function(){
$('#haber_slide1').bxSlider({
mode: 'fade',
speed: 500,
pause: 3500,
<% If haberliste1_RS.RecordCount > 1 Then %>
auto: true,
controls: true,
next_text: '<b>İleri »</b>',
prev_text: '<b>« Geri</b>',
wrapper_class: 'haber_slide1_container'
<% Else %>
mode:,
auto: false,
controls: false
<% End If %>
});
});
</script>
<style type="text/css">
.haberenyeni {
border: 1px solid #d0d0d0;
}
.haberenyeni2 {
color: #B6B6B6;
}
.haber_foto_css1 {
border-style: solid;
border-width: 3px;
margin: 1px 10px 1px 5px;
border-color: #dedede;
}
.haber_foto_css2 {
vertical-align: middle;
border-style: solid;
border-width: 0;
}
</style>
</head>
<body >
<div id="haber_slide1" align="left">
<%
TBL_SIRA_HABER_YENILER=1
haberliste1_RS.pagesize=1
WHILE not haberliste1_RS.eof
'-----------------------------------------------------------------------------------------------------------------------
%>
<div class="item even">
<table cellpadding="2" style="width: 244px" align="left">
<tr>
<td title="Detaylar..." style="cursorointer;" onclick="location='?id=<%=haberliste1_RS("id")%>&idx=<%=haberliste1_RS("haber_baslik")%>*******=haber_detay'">
<a target="_self" href="?******=haberdetay&id=<%=haberliste1_RS("id")%>">
<img width="75" height="90" src="haber.foto/th<%=haberliste1_RS("foto")%>" style="float:left" class="haber_foto_css1" />
<strong><%=vitrinliste1_RS("haber_baslik")%></strong><br /><br />
<font size=2>
<%=haberliste1_RS("haber_baslik")%>
<br /><br />
</font>
</td>
</tr>
</table>
</div><!-- end item -->
<%
'---------------------------------------------------------------------------------------------
haberliste1_RS.MoveNext
WEND
'---------------------------------------------------------------------------------------------
haberliste1_RS.Close
%>
</div>
<br />
</body>
Kodlar................................................................................................
<%
'-----------------------------------------------------------------------------------------------------------------------
Set haberliste1_RS = Server.CreateObject( "ADODB.Recordset" )
haberliste1_RS.ActiveConnection = Baglanti
haberliste1_RS.CursorType= adOpenStatic
haberliste1_RS.Open "Select * From haberler ORDER By id DESC"
'-----------------------------------------------------------------------------------------------------------------------
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta content="tr" http-equiv="Content-Language">
<script src="../../../inetpub/wwwroot/scripts/jquery1.js"></script>
<script type="text/javascript" src="../../../inetpub/wwwroot/scripts/haber.bxSlider.js"></script>
<script>
function stoperror(){
return true
}
window.onerror=stoperror
</script>
<script type="text/javascript" charset="UTF-8">
$(document).ready(function(){
$('#haber_slide1').bxSlider({
mode: 'fade',
speed: 500,
pause: 3500,
<% If haberliste1_RS.RecordCount > 1 Then %>
auto: true,
controls: true,
next_text: '<b>İleri »</b>',
prev_text: '<b>« Geri</b>',
wrapper_class: 'haber_slide1_container'
<% Else %>
mode:,
auto: false,
controls: false
<% End If %>
});
});
</script>
<style type="text/css">
.haberenyeni {
border: 1px solid #d0d0d0;
}
.haberenyeni2 {
color: #B6B6B6;
}
.haber_foto_css1 {
border-style: solid;
border-width: 3px;
margin: 1px 10px 1px 5px;
border-color: #dedede;
}
.haber_foto_css2 {
vertical-align: middle;
border-style: solid;
border-width: 0;
}
</style>
</head>
<body >
<div id="haber_slide1" align="left">
<%
TBL_SIRA_HABER_YENILER=1
haberliste1_RS.pagesize=1
WHILE not haberliste1_RS.eof
'-----------------------------------------------------------------------------------------------------------------------
%>
<div class="item even">
<table cellpadding="2" style="width: 244px" align="left">
<tr>
<td title="Detaylar..." style="cursorointer;" onclick="location='?id=<%=haberliste1_RS("id")%>&idx=<%=haberliste1_RS("haber_baslik")%>*******=haber_detay'">
<a target="_self" href="?******=haberdetay&id=<%=haberliste1_RS("id")%>">
<img width="75" height="90" src="haber.foto/th<%=haberliste1_RS("foto")%>" style="float:left" class="haber_foto_css1" />
<strong><%=vitrinliste1_RS("haber_baslik")%></strong><br /><br />
<font size=2>
<%=haberliste1_RS("haber_baslik")%>
<br /><br />
</font>
</td>
</tr>
</table>
</div><!-- end item -->
<%
'---------------------------------------------------------------------------------------------
haberliste1_RS.MoveNext
WEND
'---------------------------------------------------------------------------------------------
haberliste1_RS.Close
%>
</div>
<br />
</body>