Douglas
Edição feita por: douglas.ck, 02/09/2004, 15:06.
Posted 02/09/2004, 15:06
Edição feita por: douglas.ck, 02/09/2004, 15:06.
Posted 02/09/2004, 17:22
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];}}
}
<body onload="MM_preloadImages('image1.jpg','image2.jpg','image3.jpg','image4.jpg','image5.jpg')">
Edição feita por: André - MundoNX, 02/09/2004, 17:31.
Posted 02/09/2004, 17:42
Posted 02/09/2004, 17:58
Posted 03/09/2004, 07:56
Posted 03/09/2004, 11:26
Warning: main(../register_global.php): failed to open stream: No such file or directory in /home/thiagom/public_html/include/config.php on line 2
Warning: main(): Failed opening '../register_global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thiagom/public_html/include/config.php on line 2
Posted 03/09/2004, 17:47
Posted 03/09/2004, 18:42
Posted 03/09/2004, 23:41
Posted 04/09/2004, 01:32
criar_pasta.php
modificar as linhas 4 e 5 para:
<?
mkdir("galeria/$nomedapasta", 0777);
chmod("galeria/$nomedapasta", 0777);
?>cadastrar_db.php
adicionar abaixo da linha 8:
{
$pasta = @chmod("../images/galeria/$nomedapasta", 0777);
}
Posted 04/09/2004, 04:21
Posted 04/09/2004, 10:25
Posted 06/09/2004, 10:40
<script LANGUAGE="JavaScript" SRC="css/client_sniff.js"></SCRIPT>
<script language="JavaScript">
stop_stopstart = new Image;
start_stopstart = new Image;
stop_stopstart.src = 'img/bt-controls.gif';
start_stopstart.src = 'img/bt-control.gif';
var timer;
var current_location = 1;
var next_location = 2;
var prev_location = 0;
var pics_loaded = 0;
var onoff = 0;
var direction = 1;
var timeout_value;
var images = new Array;
var photo_urls = new Array;
var photo_captions = new Array;
var transitionNames = new Array;
var transitions = new Array;
var current_transition = 15;
var loop = 0;
transitions[0] = "progid:DXImageTransform.Microsoft.Fade(duration=1)";
transitions[1] = "progid:DXImageTransform.Microsoft.Blinds(Duration=1,bands=20)";
transitions[2] = "progid:DXImageTransform.Microsoft.Checkerboard(Duration=1,squaresX=20,squaresY=20)";
transitions[3] = "progid:DXImageTransform.Microsoft.Strips(Duration=1,motion=rightdown)";
transitions[4] = "progid:DXImageTransform.Microsoft.Barn(Duration=1,orientation=vertical)";
transitions[5] = "progid:DXImageTransform.Microsoft.GradientWipe(duration=1)";
transitions[6] = "progid:DXImageTransform.Microsoft.Iris(Duration=1,motion=out)";
transitions[7] = "progid:DXImageTransform.Microsoft.Wheel(Duration=1,spokes=12)";
transitions[8] = "progid:DXImageTransform.Microsoft.Pixelate(maxSquare=10,duration=1)";
transitions[9] = "progid:DXImageTransform.Microsoft.RadialWipe(Duration=1,wipeStyle=clock)";
transitions[10] = "progid:DXImageTransform.Microsoft.RandomBars(Duration=1,orientation=vertical)";
transitions[11] = "progid:DXImageTransform.Microsoft.Slide(Duration=1,slideStyle=push)";
transitions[12] = "progid:DXImageTransform.Microsoft.RandomDissolve(Duration=1,orientation=vertical)";
transitions[13] = "progid:DXImageTransform.Microsoft.Spiral(Duration=1,gridSizeX=40,gridSizeY=40)";
transitions[14] = "progid:DXImageTransform.Microsoft.Stretch(Duration=1,stretchStyle=push)";
transitions[15] = "special case";
var transition_count = 15;
var photo_count = 0;
var slideShowLow = "<? $var1 = "&evento=$evento&data=$data&local=$local";?>";
if (is_ie4up || is_nav6up) {
} else {
document.location = slideShowLow;
}
var browserCanBlend = (is_ie5_5up);
function stopOrStart() {
if (onoff) {
stop();
} else {
play();
}
}
function toggleLoop() {
if (loop) {
loop = 0;
} else {
loop = 1;
}
}
function changeElementText(id, newText) {
element = document.getElementById(id);
element.innerHTML = newText;
}
function stop() {
onoff = 0;
status = "O Slide está Parado, Click [play] para continuar.";
clearTimeout(timer);
document.stopstart.src = stop_stopstart.src;
}
function play() {
onoff = 1;
status = "O Slide está sendo executado...";
document.stopstart.src = start_stopstart.src;
go_to_next_photo();
}
function changeDirection() {
if (direction == 1) {
direction = -1;
} else {
direction = 1;
}
preload_next_photo();
}
function change_transition() {
current_transition = document.galleryslides.transitionType.selectedIndex;
}
function preload_complete() {
}
function reset_timer() {
clearTimeout(timer);
if (onoff) {
timeout_value = document.galleryslides.time.options[document.galleryslides.time.selectedIndex].value * 1000;
timer = setTimeout('go_to_next_photo()', timeout_value);
}
}
function wait_for_current_photo() {
if (!show_current_photo()) {
status = "Carregando Fotos (" + current_location + " de " + photo_count +
"). Aguarde...";
clearTimeout(timer);
timer = setTimeout('wait_for_current_photo()', 500);
return 0;
} else {
status = "Slide está sendo executado...";
preload_next_photo();
reset_timer();
}
}
function go_to_prev_photo(){
if (onoff == 0){
play();
return;
}
current_location = prev_location;
if (!show_current_photo()) {
wait_for_current_photo();
return;
}
preload_next_photo();
reset_timer();
}
function go_to_next_photo() {
if (onoff == 0){
play();
return;
}
current_location = next_location;
if (!show_current_photo()) {
wait_for_current_photo();
return;
}
preload_next_photo();
reset_timer();
}
function preload_next_photo() {
next_location = (parseInt(current_location) + parseInt(direction));
prev_location = (parseInt(current_location) - parseInt(direction));
if (next_location > photo_count) {
next_location = 1;
prev_location = photo_count;
if (!loop) {
stop();
}
}
if (next_location == 0) {
next_location = photo_count;
prev_location = 1;
}
preload_photo(next_location);
}
function show_current_photo() {
if (!images[current_location] || !images[current_location].complete) {
preload_photo(current_location);
return 0;
}
if (browserCanBlend){
var do_transition;
if (current_transition == (transition_count)) {
do_transition = Math.floor(Math.random() * transition_count);
} else {
do_transition = current_transition;
}
document.images.slide.style.filter=transitions[do_transition];
document.images.slide.filters[0].Apply();
}
document.slide.src = images[current_location].src;
setCaption(photo_captions[current_location]);
if (browserCanBlend) {
document.images.slide.filters[0].Play();
}
return 1;
}
function preload_photo(index) {
if (pics_loaded < photo_count) {
if (!images[index]) {
images[index] = new Image;
images[index].onLoad = preload_complete();
images[index].src = photo_urls[index];
pics_loaded++;
}
}
}
function setCaption(text) {
changeElementText("caption", "<table width=100% class=texto><tr><td width=95%>" + text + "</td><td nowrap>[" + current_location + " de " + photo_count + "]</td></tr></table> ");
}
</Script>
<html>
<head>
<title>Mundonx Slide Show</title>
<link rel="stylesheet" type="text/css" href="css/padrao.css">
<script src="css/code.js"></script>
<link rel="stylesheet" type="text/css" href="padrao.css">
</head>
<body bgcolor="#FFD794" topmargin="3" rightmargin="0" leftmargin="0" bottommargin="0" link="#000000" vlink="#000000" alink="#000000">
<form name=galleryslides>
<div align="center">
<table width=450 height=338 border=0 cellspacing=0 cellpadding=0>
<tr bgcolor="black">
<td colspan=3 height=1><img src="img/nt.gif" width="1" height="1"></td>
</tr>
<tr>
<td bgcolor="black" width=1><img src="img/nt.gif" width="1" height="1"></td>
<script language="JavaScript">
document.write("<td align=center><img border=0 src="+photo_urls[1]+" name=slide></td>");
</script>
<td bgcolor="black" width=1><img src="img/nt.gif" width="1" height="1"></td>
</tr>
<tr bgcolor="black">
<td colspan=3 height=1><img src="img/nt.gif" width="1" height="1"></td>
</tr>
<tr><td colspan=3 bgcolor="#FFE6BD">
<script>
document.write("<div class='desc' id='caption'></div>");
</SCRIPT>
</td></tr>
</table>
<img src=images/bt-controls.gif width=155 height=19 border=0 usemap=#control name=stopstart><br>
<map name=control>
<area shape=rect coords="0,0,42,29" href="javascript:go_to_prev_photo()">
<area shape=rect coords="43,0,75,29" href="javascript:play()">
<area shape=rect coords="76,0,112,29" href="javascript:stop()">
<area shape=rect coords="113,0,154,29" href="javascript:go_to_next_photo()">
</map><span class=texto><font color="#990000"><i>(Pressione <b>Stop</b> primeiro antes de mudar a Velocidade e a Transição do Slide)</i></font></span><br>
<span class=texto><b>Velocidade: </b></span><select name="time" size=1 onchange="reset_timer()" style="font-size=10px;">
<option value=1 > 1 segundos
<option value=2 > 2 segundos
<option value=3 selected> 3 segundos
<option value=4 > 4 segundos
<option value=5 > 5 segundos
<option value=10 > 10 segundos
<option value=15 > 15 segundos
<option value=30 > 30 segundos
<option value=45 > 45 segundos
<option value=60 > 60 segundos
</select><br>
<script language="Javascript">
if (browserCanBlend) {
document.write(' <span class=texto><b>Transição: </b></span><select name="transitionType" size=1 onchange="change_transition()" style="font-size=10px;"> <option value=0> Blend <option value=1 > Blinds <option value=2 > Checkerboard <option value=3 > Diagonal <option value=4 > Doors <option value=5 > Gradient <option value=6 > Iris <option value=7 > Pinwheel <option value=8 > Pixelate <option value=9 > Radial <option value=10 > Rain <option value=11 > Slide <option value=12 > Snow <option value=13 > Spiral <option value=14 > Stretch <option value=15 SELECTED> ALEATÓRIO </select>');
}
</script>
<br><script language="Javascript">
setCaption(photo_captions[1]);
preload_photo(1);
play();
</script>
</div>
</form>
</body>
</html>
Link para vc ver o script montadoPosted 06/09/2004, 14:22
Posted 06/09/2004, 22:33
<?php /* * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2003 Bharat Mediratta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: slideshow.php,v 1.41 2003/10/14 16:12:05 jefmcg Exp $ */ ?>
Edição feita por: jaraujo, 06/09/2004, 23:09.
0 membro(s), 3 visitante(s) e 0 membros anônimo(s)