68
| <![CDATA[<script type="text/javascript">
window.addEvent('domready', function() {
SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});
var K2SitePath = '/';
window.addEvent('load',function() {
new YTMega(
$('meganavigator'),
{
duration: 500,
transition: Fx.Transitions.Circ.easeOut,
slide: 1,
wrapperClass: 'yt-main',
activeSlider: 0,
debug: false
});
});
function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(840000); });
</script>]]>
|
713
| <![CDATA[<script type="text/javascript">
<!--
/* <![CDATA[ */
window.addEvent('domready',function(){
featuredcontentslider.init({
id: "yttitleflash180", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.1], //[true/false, fadedegree]
autorotate: [true, 5000], //[true/false, pausetime]
onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
}
});
});
/* ]]> */
-->
</script>]]>
|
759
| <![CDATA[<script type="text/javascript">
jQuery.noConflict();
</script>]]>
|
836
| <![CDATA[<script type="text/javascript">
window.addEvent('domready', function() {
/*
* This segment of code adds the slide effect to the advanced search box.
*/
if (document.id('advanced-search') != null) {
var searchSlider = new Fx.Slide('advanced-search');
searchSlider.hide();
document.id('advanced-search-toggle').addEvent('click', function(e) {
e = new Event(e);
e.stop();
searchSlider.toggle();
});
}
/*
* This segment of code disables select boxes that have no value when the
* form is submitted so that the URL doesn't get blown up with null values.
*/
if (document.id('finder-search') != null) {
document.id('finder-search').addEvent('submit', function(e){
e = new Event(e);
e.stop();
if (document.id('advanced-search') != null) {
// Disable select boxes with no value selected.
document.id('advanced-search').getElements('select').each(function(s){
if (!s.getProperty('value')) {
s.setProperty('disabled', 'disabled');
}
});
}
document.id('finder-search').submit();
});
}
/*
* This segment of code sets up the autocompleter.
*/
var url = '/index.php/busca?task=suggestions.display&format=json&tmpl=component';
var completer = new Autocompleter.Request.JSON(document.id('q'), url, {'postVar': 'q'});
});
</script>]]>
|
1058
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function(){
$('#btn').click( function(){ /* Quando clicar em #btn */
/* Coletando dados */
var nome = $('#nome').val();
var email = $('#email').val();
var msg = $('#msg').val();
/* Validando */
if(nome.length <= 3){
alert('Informe seu nome');
return false;
}
if(email.length <= 5){
alert('Informe seu email');
return false;
}
if(msg.length <= 5){
alert('Escreva uma mensagem');
return false;
}
/* construindo url */
var urlData = "&nome=" + nome +
"&email=" + email +
"&msg=" + msg ;
/* Ajax */
$.ajax({
type: "POST",
url: "http://www.portovitoria.pr.gov.br/includes/envia-email.php", /* endereço do script PHP */
async: true,
data: urlData, /* informa Url */
success: function(data) { /* sucesso */
$('#retornoHTML').html(data);
},
});
});
});
</script>]]>
|