Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 code run only IE and not Firefox
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Massimo
Junior Member

Italy
125 Posts

Posted - 08 February 2005 :  06:09:29  Show Profile  Visit Massimo's Homepage
Why this code run on IE and create error for Firefox...


<%
reklam_yer = Server.Mappath("mdb-database/banners.mdb")
Set Reklam_C = Server.CreateObject("Adodb.Connection")
Reklam_C.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& reklam_yer &";"
Set Reklam = Server.CreateObject("Adodb.Recordset")
rSQL = "Select * from Reklam where Durum = 'Active' and K_CPM > 0"
Reklam.Open rSQL, Reklam_C, 1, 3

RSayisi = Reklam.RecordCount
Randomize
secilecek = Int((RSayisi * Rnd) + 0)
Reklam.Move(secilecek)

Reklam("Gorunme") = Reklam("Gorunme") + 1
Reklam("K_CPM") = Reklam("K_CPM") - 1
Reklam.Update
%>
<p align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<%
'Banner Gifse
if reklam("reklamtipi")="image" then
%>
<tr>
<td align="center" width="100%"><a href="<%=Reklam("url")%>" target="_blank">
<IMG height=60 src="<%=Reklam("src")%>" border="1" width=468></a></td>
</tr>
<%
Elseif reklam("reklamtipi")="flash" then
'Banner Filaţsa
%>
<tr>
<td align="center" width="100%">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=salakkýz WIDTH=468 HEIGHT=60>
<PARAM NAME=movie VALUE="<%=Reklam("src")%>"><PARAM NAME=bgcolor VALUE=<%=reklam("bgcolor")%>> <PARAM NAME=quality VALUE=high> <EMBED src="%=Reklam("src")%>" quality=high bgcolor=<%=reklam("bgcolor")%> WIDTH=468 HEIGHT=60 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>


</td>
</tr>

<%else
End if%>
</table>
</p>
<%
reklam.close
set reklam = nothing

reklam_c.close
set reklam_c = nothing
%>


tanks

Massimo Farieri
Snitz Italian Community
===============
http://www.snitz.it
http://www.superdeejay.net/forum/

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 08 February 2005 :  06:15:45  Show Profile
What error does it cause? What mod is it?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Massimo
Junior Member

Italy
125 Posts

Posted - 08 February 2005 :  19:59:26  Show Profile  Visit Massimo's Homepage
not show banner swf... show this code:

" quality=high bgcolor=#FFFFFF WIDTH=468 HEIGHT=60 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">



tanks

Massimo Farieri
Snitz Italian Community
===============
http://www.snitz.it
http://www.superdeejay.net/forum/

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 08 February 2005 :  23:36:39  Show Profile
You're missing an opening asp tag:
<EMBED src="<%=Reklam("src")%>" quality=high

Support Snitz Forums
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 February 2005 :  06:05:57  Show Profile
D'oh! How'd I miss that?!


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Massimo
Junior Member

Italy
125 Posts

Posted - 09 February 2005 :  08:30:08  Show Profile  Visit Massimo's Homepage
tanks ;)

Massimo Farieri
Snitz Italian Community
===============
http://www.snitz.it
http://www.superdeejay.net/forum/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07