0

我得到了在空间上旋转多个图像的代码

<script type="text/javascript"><!--
/*
 Copyright 2017 The PCman Website Rotating Banner Code
 https://www.thepcmanwebsite.com
 This code is free to use provided this notice is not removed.
 Create your own custom banner code with banners
*/
mybanners=
[
"<a href=\"http://example123.com\" target=\"_blank\"><img src=\"http://example123.com/banner.gif\" width=\"468\" height=\"60\" alt=\"Click here for example\" title=\"Click here for example\" border=\"0\"></a>",
"<a href=\"http://example.com\" target=\"_blank\"><img src=\"http://example.com/banner.gif\" width=\"468\" height=\"60\" alt=\"Click here for example\" title=\"Click here for example\" border=\"0\"></a>"
]
randomNumber = Math.random()
var show_mybanners = mybanners[Math.floor(randomNumber * mybanners.length)]
document.write(show_mybanners);
// --></script>
<noscript>
<a href="http://example.com" target=\"_blank\"><img src="http://example.com/banner.gif" width="468" height="60" alt="Click here for example" title="Click here for example" border="0"></a>
</noscript>

每次页面旋转时都会旋转一个新图像。我想要一个类似的代码来旋转 iframe(多个 Adnetwork)横幅

任何人都可以在这方面帮助我。

4

0 回答 0