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: General / Current Version (Old)
 Flash for a login graphic?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

simonduz
Junior Member

161 Posts

Posted - 08 June 2001 :  13:30:50  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
I have started adding some flash elements to my site(local) replacing buttons
and to keep it consistent I would like to replace the login graphic with the same properties.
Is this possible?
I need to replace this piece of login code:
<%
if strGfxButtons <> "0" then %>
<INPUT src="<%=strImageURL %>login.gif" type="image" value="Login" id="submit1" name="submit1">
<%
else
if strGfxButtons = "0" then %>
<INPUT type="submit" value="Login" id="submit1" name="submit1">
<%
end if
end if %>


with a flash object something like this:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=TEST2 WIDTH=85 HEIGHT=24>
<PARAM NAME=movie VALUE="flash/login.swf">
<PARAM NAME=quality VALUE=low>
<PARAM NAME="wmode" value="transparent">
<EMBED src="flash/login.swf" quality=high bgcolor=#FFB7B7
WIDTH=85 HEIGHT=24 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>


I know there will have to be some new parameters assigned but I am unsure what to add to perform the login.
There are no links assigned to the click or rollover for the image, but I can do that if that is what is needed.






http://easyromantic.webbhost.net -[test site]-
yada, yada.

tilttek
Junior Member

Canada
333 Posts

Posted - 08 June 2001 :  14:05:16  Show Profile  Visit tilttek's Homepage
quote:

<%
if strGfxButtons <> "0" then %>
<INPUT src="<%=strImageURL %>login.gif" type="image" value="Login" id="submit1" name="submit1">
<%
else
if strGfxButtons = "0" then %>
<INPUT type="submit" value="Login" id="submit1" name="submit1">
<%
end if
end if %>


with a flash object something like this:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=TEST2 WIDTH=85 HEIGHT=24>
<PARAM NAME=movie VALUE="flash/login.swf">
<PARAM NAME=quality VALUE=low>
<PARAM NAME="wmode" value="transparent">
<EMBED src="flash/login.swf" quality=high bgcolor=#FFB7B7
WIDTH=85 HEIGHT=24 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>


I know there will have to be some new parameters assigned but I am unsure what to add to perform the login.
There are no links assigned to the click or rollover for the image, but I can do that if that is what is needed.



Ok. just replace the code exactly like you said, then in you flash In the goURL use this:
 javascript:document.frmName.submit() 


Replace frmName by the name of the form where the Login Button is. (Sorry I don't have SNITZ here).



Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 08 June 2001 :  15:20:23  Show Profile
Are you going to use a logout flash button also, or just a login one?

when you're logged out the name of the form is "form1". When you're logged in, the name of the form is "form2". So with what tilttek said, and what I've just told you, hopefully that will work.

Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 08 June 2001 :  22:44:04  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
Alright I cry uncle!
I inserted this in my URL:
javascript:document.form1.submit()

This returns an error:
Document does not support this property or method.
I spent some time at Flash Kit Community web site searching for an answer but I come back here begging for mercy.
Anyone know what to do. I must admit this Snitz thing is kicking my A#% but I have learned so much it is worth all the late nights.

http://easyromantic.webbhost.net -[test site]-
yada, yada.
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  09:17:04  Show Profile  Visit tilttek's Homepage
quote:

Alright I cry uncle!
I inserted this in my URL:
javascript:document.form1.submit()



Be sure it the good form, I think is form2 you have to use. Then, the name of the form is CASE sensitive so be sure of the way you write it.


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07