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 (Multiple Adnetwork) バナーをローテーションするために、このような類似のコードが必要です

誰でもこれで私を助けることができますか?

4

0 に答える 0