Add the “login” codes for the forum
Hi, all
I have a flash file and want to add “login” codes to the forum. I found a series of codes by chance. Could any expert give me more ideas? Any more simple or other ways?
The following is what I found:
Put the code script into HTML files between <head> and</head>.
<script language=“javascript”>
function logon(user,pass)
{
//log in
var obj = document.myform;
obj.username.value = user;
obj.password.value = pass;
obj.submit();
}
</script>
Type the following codes into the button “as” of the flash.
on (release, keyPress “<Enter>”) {
getURL ((((“javascript:logon(’” + username) + “’,’”) + password) + “’)”, “_self”);
}
You can get the username and the password from your own “testfiled”, needing the interactive control between Flash and HTML.
Then as for the discuz, it needs modifying and adding the codes below.
obj.username.value = user;
obj.password.value = pass;
This is just the basic scripts and the codes still needs modifying the action of some properties in the form in the login interface of discuz and phpwind.
For example:
HTML code: <input typt=“text” name=“tttt”>
Modify the codes above as flash codes:
obj.ttt.value=""
PS:
Tip:
It should be Flash (ending with SWF) and not other formats. Most of my videos are AVI. Choosing a professional conversion tool makes them into flash (SWF) or FLV. I always use Moyea Flash Video MX. It has many editing function that I like.
http://www.video-to-flash.com/video_to_flash/
Search for it in google and you can get more information.
Welcome to the experts to discuss with the topic and learn more about the information in this aspect.
Thanks in advance:)