如何使用div数据滚动文本应使用jquery从数据库中获取 [英] how to scroll text with in div data should be get from the database using jquery

查看:54
本文介绍了如何使用div数据滚动文本应使用jquery从数据库中获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

plz帮助我我正在使用jquery,我想在div中垂直滚动数据,但是应该使用jquery从数据库中获取数据,我该怎么做plz回复我

先生,这是我的代码

 功能 BuildingAdvatise()
 {
尝试
 {
 $ .getJSON(http://  localhost:1062/GalleryDataService1.svc/Imageslides?$ orderby = Description ;, 
功能(数据)
 {
如果
(data!=  null && data.d!=  null ; data.d.results.长度>  0 ){ var 类型= data.d.results; $(" ).remove(); $(' #Gallery').append(" < div id ='galleryadv'class ='sHeader'/>") var  i =  0 ; i< Genre.length; i ++){ $("#galleryadv).append("< div class ='Adddiv'> 
" 
< img src = ' "+类型[i] .ImagePath +"'/>< p  class  = '  addcontent'> "  >< /  p  >  </  div  >  " ); $(" #galleryadv  ).append("< div  class  = '  imge_box' >< img src = ' "+类型[i] .ImagePath +"'/>< div ' "  </  span  > < div  class  = '  content'> "  +类型[i].说明+"  div  >  "  #galleryadv  ).append('< div class =" rightimg "  '   +类型[i] .ImagePath +' "  title_text "  righta_content  >' + Genre [i] .Description +'</p></div>'); } setTimeout(BuildingAdvatise,5000); }}); } catch(ee){alert(" teestset  ); }}  




这是我的代码,因为我们正在从db(Genre [i] .Description)获取数据,一旦从数据库(Genre [i] .Description)获取数据,我们应该滚动该数据以查看代码,感谢先生的帮助.

解决方案

.getJSON(http:// localhost:1062/GalleryDataService1.svc/Imageslides?

orderby = Description ;, 功能(数据) { 如果 (data!= null && data.d!= null ; data.d.results.长度> 0 ){ var 类型= data.d.results;


(" ).remove();


plz help me i am working on jquery i want to scroll the data with in the div vertically but data should be fetch from the database using jquery how could i do it plz reply me

sir this is my code

 function BuildingAdvatise()
 { 
try
 {
 $.getJSON(http://localhost:1062/GalleryDataService1.svc/Imageslides?$orderby=Description;, 
function (data)
 { 
if 
(data != null && data.d != null ; data.d.results.length > 0) { var Genre = data.d.results; $("#galleryadv").remove(); $('#Gallery').append("<div id='galleryadv' class='sHeader' />") for (var i = 0; i < Genre.length; i++) { //$("#galleryadv").append("<div class='Adddiv'>
" + Genre[i].Title + "
<img src='" + Genre[i].ImagePath + "'/><p class='addcontent'>" + Genre[i].Description + "</p></div>"); $("#galleryadv").append("<div class='imge_box'><img src='" + Genre[i].ImagePath + "'/><div class='title'><span>" + Genre[i].Title + "</span><div class='content'>" + Genre[i].Description + "</div>"); //$("#galleryadv").append('<div class="rightimg"><img src="' + Genre[i].ImagePath + '"/><div class="title_text">
' + Genre[i].Title + '
</div><p div class="righta_content">' + Genre[i].Description + '</p></div>'); } setTimeout(BuildingAdvatise, 5000); } } ); } catch (ee) { alert("teestset"); } } 




this is my code in that we are getting data from db (Genre[i].Description) once get the data from it we should scroll that data check out the code sir thank for help

解决方案

.getJSON(http://localhost:1062/GalleryDataService1.svc/Imageslides?


orderby=Description;, function (data) { if (data != null && data.d != null ; data.d.results.length > 0) { var Genre = data.d.results;


("#galleryadv").remove();


这篇关于如何使用div数据滚动文本应使用jquery从数据库中获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆