Jeg har brugt (igen) chromelessmetoden, men IE 6.0 og service pack et eller andet har fixet det bug der gjorde Chromeless muligt, derfor vil jeg gerne lave et almindeligt popupvindue der ikke fylder hele skærmen og ikke har værktøjslinjer etc, men jeg kan simpelthen ikke få L..... til at virke. Kig på
www.transfusion.dk/poda/default.htm under "find forhandler" (indtast 4000)og klik på både se stærke tilbud... og butikoverskrifterne, så kan du se hvad jeg mener. det er kun visCenter-dokumentet det drejer sig om, så det paster jeg lige som det kan ses på www'en. Kommer du med en hurtig løsning - der virker - kan vi tale om hvordan jeg giver dig ekstra points.
<%@Language=VBScript LCID=1030%><%Option Explicit%>
<%Response.Expires=0%>
<!--#INCLUDE FILE="..\..\Includes\DBconn_open.asp"-->
<HTML>
<HEAD>
<TITLE></TITLE>
<script language="javaScript" type="text/javascript" SRC="../../includes/pz_chromeless_2.1.js"></SCRIPT>
<script>
function openIT(MyQuery) {
theURL="visButik.asp?id='" + MyQuery + "'"
wname ="CHROMELESSWIN"
W=300;
H=300;
windowCERRARa = "../../images/faelles/close_a.gif"
windowCERRARd = "../../images/faelles/close_d.gif"
windowCERRARo = "../../images/faelles/close_o.gif"
windowNONEgrf = "../../images/faelles/none.gif"
windowCLOCK = "../../images/faelles/clock.gif"
windowREALtit = "Vis Butikinfo"
windowTIT = " <font face='verdana'size='1'>Butiksinfo</font>"
windowBORDERCOLOR = "#009430"
windowBORDERCOLORsel = "#999999"
windowTITBGCOLOR = "#F5F4F5"
windowTITBGCOLORsel = "#333333"
openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
function openIT(MyQuery1) {
theURL="visTilbud.asp?id='" + MyQuery1 + "'"
wname ="CHROMELESSWIN"
W=300;
H=300;
windowCERRARa = "../../images/faelles/close_a.gif"
windowCERRARd = "../../images/faelles/close_d.gif"
windowCERRARo = "../../images/faelles/close_o.gif"
windowNONEgrf = "../../images/faelles/none.gif"
windowCLOCK = "../../images/faelles/clock.gif"
windowREALtit = "Vis Butikinfo"
windowTIT = " <font face='verdana'size='1'>Butiksinfo</font>"
windowBORDERCOLOR = "#009430"
windowBORDERCOLORsel = "#999999"
windowTITBGCOLOR = "#F5F4F5"
windowTITBGCOLORsel = "#333333"
openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
</script>
</head>
</HEAD>
<%
Dim strSQLcenter, RScenter, id
id=Request.QueryString("id")
strSQLcenter = "SELECT * FROM t_center WHERE centerID=" & id & ";"
set RScenter = DBconn.Execute(strSQLcenter)
%>
<%
Dim strSQLbutik, RSbutik
strSQLbutik = "SELECT * FROM t_sis WHERE centerID=" & id & ";"
set RSbutik = DBconn.Execute(strSQLbutik)
%>
<link rel="StyleSheet" href="../../stylesheets/styleHome.css" type="text/css">
<BODY>
<TABLE width="735px" cellpadding="5" style="position:relative; right:-2px; top:-15px">
<TR>
<TD width="600px" valign="top">
<%
If not (RScenter.BOF or RScenter.EOF) then
RScenter.Movefirst
Do while not RScenter.EOF
Response.Write "<br>" &_
"<FONT SIZE='3' COLOR='#009430'><B>" & RScenter("navn") & "</B></FONT><BR><BR><IMG SRC=" & RScenter("billedstiPortraet")& " BORDER=1><BR><BR><FONT SIZE='1' FACE='verdana' COLOR='#000000'>" & RScenter("beskrivelse") & "<BR><BR><a href=java script:openIT(" & RScenter("centerID") & ");><B>Se stærke tilbud fra "& RScenter("navn") &"</a></B><BR><BR><HR size='1' color='#000000'>" & RScenter("adresse") & " | " & RScenter("postnr") & " " & RScenter("bynavn") & " | Tel. " & RScenter("telefon") & " | Fax " & RScenter("fax") & " | <a href='mailto:" & RScenter("email") & "'>" & RScenter("email") & "</a>.</FONT>"
RScenter.Movenext
Loop
End If
%>
</TD>
<TD width="140px" height="400px" bgcolor="#f5f4f5" valign="top" align="right"><H5>Butikker</H5>
<%
If not (RSbutik.BOF or RSbutik.EOF) then
RSbutik.Movefirst
Do while not RSbutik.EOF
Response.Write "<br>" &_
"<FONT SIZE='1' FACE='verdana' COLOR='#000000'><b><a href=java script:openIT(" & RSbutik("sisID") & ");>" & RSbutik("sisNavn") & "</a></b></font><BR><FONT SIZE='1' FACE='verdana' COLOR='#00000'>" & RSbutik("sisAdresse") & "<br>" & RSbutik("sisPostnr") & " " & RSbutik("sisBynavn") & "</FONT><HR color='#009430' size='1px'>"
RSbutik.Movenext
Loop
End If
%>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>