Baixei o seguinte SCRIPT do site do Script Brasil!
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
<!--
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[ 0].click();
}
}
// -->
</script>
<script language="vbscript">
<!--
Dim Bar, Line, SP
Bar = 0
Line = "||"
SP = 100
Function Window_onLoad()
Bar = 95
SP = 10
End Function
Function Count()
If Bar < 100 Then
Bar = Bar + 1
Window.Status = "LOADING... " & Bar & "%" & " " & String(Bar, Line)
setTimeout "Count()", SP
Else
Window.Status = "Work Solution - A Solução para sua empresa"
Document.Body.Style.Display = ""
End If
End Function
Call Count()
-->
</script>
<script LANGUAGE="JavaScript" TYPE="text/javascript" SRC="/CFIDE/scripts/cfform.js"></SCRIPT>
<script LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function _CF_checkmailinglistform(_CF_this)
{
if (!_CF_hasValue(_CF_this.youremail, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.youremail, _CF_this.youremail.value, "please enter your email"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.yourname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.yourname, _CF_this.yourname.value, "please enter your name"))
{
return false;
}
}
return true;
}
//-->
</SCRIPT>
<script LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function _CF_checktellafriendform(_CF_this)
{
if (!_CF_hasValue(_CF_this.friendname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.friendname, _CF_this.friendname.value, "please enter your friend's name"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.youremail, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.youremail, _CF_this.youremail.value, "please enter your email"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.yourname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.yourname, _CF_this.yourname.value, "please enter your name"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.friendemail, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.friendemail, _CF_this.friendemail.value, "please enter your friend's email"))
{
return false;
}
}
return true;
}
//-->
</SCRIPT>
So que o Script ele funciona somente com esse código!
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
<!--
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[ 0].click();
}
}
// -->
</script>
<script language="vbscript">
<!--
Dim Bar, Line, SP
Bar = 0
Line = "||"
SP = 100
Function Window_onLoad()
Bar = 95
SP = 10
End Function
Function Count()
If Bar < 100 Then
Bar = Bar + 1
Window.Status = "LOADING... " & Bar & "%" & " " & String(Bar, Line)
setTimeout "Count()", SP
Else
Window.Status = "SEU SITE - FRASE"
Document.Body.Style.Display = ""
End If
End Function
Call Count()
-->
</script>
[size=3][u][b]Minha DÚVIDA é para que que serve o resto do código? Fiquei com medo de ser algum Códido para algum tipo de maldade! Avaliem o resto do código![/b][/u][/size]
<script LANGUAGE="JavaScript" TYPE="text/javascript" SRC="/CFIDE/scripts/cfform.js"></SCRIPT>
<script LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function _CF_checkmailinglistform(_CF_this)
{
if (!_CF_hasValue(_CF_this.youremail, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.youremail, _CF_this.youremail.value, "please enter your email"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.yourname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.yourname, _CF_this.yourname.value, "please enter your name"))
{
return false;
}
}
return true;
}
//-->
</SCRIPT>
<script LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function _CF_checktellafriendform(_CF_this)
{
if (!_CF_hasValue(_CF_this.friendname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.friendname, _CF_this.friendname.value, "please enter your friend's name"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.youremail, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.youremail, _CF_this.youremail.value, "please enter your email"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.yourname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.yourname, _CF_this.yourname.value, "please enter your name"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.friendemail, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.friendemail, _CF_this.friendemail.value, "please enter your friend's email"))
{
return false;
}
}
return true;
}
//-->
</SCRIPT>
Agradeço desde já e desculpem se postei algo de errado!!!
Pergunta
Glacyo
Baixei o seguinte SCRIPT do site do Script Brasil!
So que o Script ele funciona somente com esse código!Agradeço desde já e desculpem se postei algo de errado!!!
Link para o comentário
Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.