广告旋转器不是手动的,而是自动的 [英] Ad rotator not manually but automatically

查看:135
本文介绍了广告旋转器不是手动的,而是自动的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有20张图片和数据库可以访问.现在我要编码
一张一张地抓取这20张图片,并且这些图片的更改应该是自动进行的,但我也想< (上一个按钮)> (下一个按钮),以便用户还可以控制这些广告以查看,并且当用户单击它时,它们将自动出现在广告客户的网页上.

另一件事,我也想编码,然后分发给其他网站所有者,以便他们可以将其放置在自己的网站中,以查看与我网站上相同的广告轮播者.当图片1显示在我的网站上时,相同的图片也显示在我的网站上其他网站所有者.

Suppose that I have 20 pictures and database in access .Now what I want is coding
which fetch these 20 pictures one by one and the changing of these pictures should be automatically but I also want < (previous button) > (next button) so that user can also control these ads to see And when user click on it they will automatically come on advertiser''s web page .

Another thing ,I also want coding which I can distribute to other site owner so that they can place it in their site to see the same ad rotator which is on my site.When picture 1 is displayed on my site then same picture is displayed on others site owner.

推荐答案

您可以编写一个将这些内容从数据库中拉出的服务,而在客户端,您可以调用javascript setTimeout()函数,会导致方法触发并对该服务进行AJAX调用以提取下一个添加项.

然后,超时功能还将调用reset超时,以便在另外30秒之内再次触发.下一个/上一个按钮应手动触发AJAX调用并重置超时.

应该相对直接一些,所以需要考虑一些事情并进行一些研究.
You could write a service that pulls these from the database, and on the client side you could call a javascript setTimeout() function that would cause a method to trigger and make an AJAX call to the service to pull the next add.

The timeout function would also then call reset the timeout so it fires again in another 30 seconds or whatever. The next/previous buttons should manually trigger the AJAX call and also reset the timeout.

Should be relatively straight forward, so there are somethings to think about and go do some research on.


这篇关于广告旋转器不是手动的,而是自动的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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