<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script type="text/javascript" src="sexyalertbox.v1.2.jquery.js"></script> <!--Se llaman las librerías. Funciona bn-->
<link rel="stylesheet" type="text/css" media="all" href="sexyalertbox.css"/>
<script type="text/javascript">
function betteralert(text, title_outside) //title_outside es un paramétro opciona. Esta es la función mía
text_print="";
if (title_outside == undefined)
{
var title="Thanks for use Wagerplus.com";
} //Este if sólo define qué irá en el título
else
{
var title=title_outside;
}
text_print="<h1>"+title+"</h1><em></em><br/><p> "+text+"</p>'"; //Se arma el texto por imprimir
try
{
if(!Sexy.alert(text_print)) //Ojo q aquí se llama a la función sexy.alert
{
return false;
}
else
{
alert(text);
return true;
}
}
catch(change_type_alert)
{
alert(text+" Entro al catch");
}
title_outside=undefined;
}
</script>
<title>Prueba - Alerta que se desliza</title>
</head>
<body>
<p>
</br><!-------------------------------------------->
<a href="#" onclick="betteralert('This is the text','This is the title');"> <!----------call to the function-------------->
Show alert<!-------------------------------------------->
</a>
</p>
<!--
------------------------------------------------------------------->
<!----------------------------------------------------------------->
<!-------I need the function work as you can see below,------------>
<!-------I have some functions working as I need work betteralert.->
<!-------It work well if I use jalert and not sexy.alert.---------->
<!-------but I need sexy.alert or something like that, I mean,----->
<!-------something really beautiful--------------------------------->
<!----------------------------------------------------------------->
<script type="text/javascript">
betteralert("Thanks for use our website <p> This is the function betteralert</p>");
</script>
-->
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!--Se llaman las librerías. Funciona bIEn-->
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script type="text/javascript" src="sexyalertbox.v1.2.jquery.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="sexyalertbox.css"/>
<script type="text/javascript">
function betteralert(text, title_outside) //title_outside is an optional parameter
{
text_print="";
if (title_outside == undefined) //If there isn't the title in the parameters, so it uses the default title. //Este if sólo define qué irá en el título. Ignorarlo para este caso
{
var title="Thanks for use Wagerplus.com";
}
else
{
var title=title_outside;
}
text_print="<h1>"+title+"</h1><em></em><br/><p> "+text+"</p>'"; //The text will be in the alert
try
{
if(!Sexy.alert(text_print)) //Ojo q aquí se llama a la función sexy.alert {
return false;
}
else
{
alert(text);
return true;
}
}
catch(change_type_alert)
{
alert(text+" Entro al catch");
}
title_outside=undefined;
}
</script>
<title>Prueba - Alerta que se desliza</title>
</head>
<body>
<p>
</br> <!-------------------------------------------->
<a href="#" onclick="betteralert('This is the text','This is the title');"> <!----------call to the function-------------->
Show alert <!-------------------------------------------->
</a>
</p>
<!--
------------------------------------------------------------------->
<!----------------------------------------------------------------->
<!-------I need the function work as you can see bellow,------------>
<!-------I have some functions working as I need work betteralert.->
<!-------It work well if I use jalert and not sexy.alert.---------->
<!-------but I need sexy.alert or something like that, I mean,----->
<!-------something really beautiful--------------------------------->
<!----------------------------------------------------------------->
<script type="text/javascript">
betteralert("Thanks for use our website <p> This is the function betteralert</p>");
</script>
-->
</body>
</html>