ASP to create a site pop-up ad

zhaozj2021-02-16  50

This article teaches you to use ASP to create a site pop-up ads within 5 minutes here. We only give core code, display and background adding is quite simple, you can get it yourself. First, you will insert the following code into the code of the website, "pop-up advertising settings" "SELECT TOP 2 Width, Height, ID from pop where useit = 1 Order By ID" set = conn.execute (SQL) if NOT RS.EOF AND NOT RS.BOF THENDO WHILE NOT RS.EOFID = RS ("ID") Width = RS ("Width") Height = RS ("HEIGHT") Windownum = WINDOWNUM 1%> < Script language = "javascript"> var windowUM = <% = WINDOWNUM%> VAR ID = <% = ID%>; var height = <% = height%> var width = <% = width%> //

'Height =' height ', width =' width ', TOP = 0, Left = 0, Toolbar = no, menubar = no, Scrollbar

s = yes, resizable = no, location = no, status = no ') // -> <% =/-> This example only sets up to two ads , You can set more as needed, but there is not much good, slow speed. Create a new database, the Poppop Table field content is as follows: ID Auto number Width pop-up window Width Digital Height pop-up window Height Digital content Remarks Useit is activated, is / Note to receive passing in pop.asp The parameter opens the corresponding record is displayed. OK, here, your pop-up advertising system is complete. Is not it simple?

转载请注明原文地址:https://www.9cbs.com/read-25814.html

New Post(0)