主题:  如何实现以下功能!急~

笑闪腰XP

职务:普通成员
等级:1
金币:0.0
发贴:46
注册:2002/6/2 14:34:33
#12002/6/10 19:34:54
我为了测试这个功能,用UD写了个公告板!!
在主页上只显示标题,当我点一下可以进入用javascript弹出的窗口!问题就是出在这:我怎样用UD和JAVASCRIPT想结合写呀!!
我把源代码贴出来吧!(帮看看里面的JAVASCRIPT代码,该怎样放才可以实现我说的这个功能)
index.asp:
<%@LANGUAGE="VBSCRIPT"%>

<%
set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_ecrisis_STRING
rs.Source = "SELECT GGBID, GGBTITLE, GGBDATE FROM GGB ORDER BY GGBDATE DESC"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 3
rs.Open()
rs_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = 10
Dim Repeat1__index
Repeat1__index = 0
rs_numRows = rs_numRows + Repeat1__numRows
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>








<% If Not rs.EOF Or Not rs.BOF Then %>
<%
While ((Repeat1__numRows <> 0) AND (NOT rs.EOF))
%>









"><%=(rs.Fields.Item("GGBTITLE").value)%> <%= DoDateTime((rs.Fields.Item("GGBDATE").value), 2, 2052) %>

<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs.MoveNext()
Wend
%>
<% End If ' end Not rs.EOF Or NOT rs.BOF %>


<% If rs.EOF And rs.BOF Then %>
无公告
<% End If ' end rs.EOF And rs.BOF %>


<%
rs.Close()
%>



=ridincal=

职务:管理员
等级:7
金币:20.0
发贴:5886
注册:2004/1/13 11:47:04
#22002/6/10 19:39:57
转DreamweaverDeveloper区