Moderatori: Dylan666, hydra, gahan
function OpenUp(theUrl,WinName,width,height,scrollbar) {
// theUrl = The page
// width = Width of the window
// height = Height of the windows
// scroll = Do You want the Scroll??? ][ Value = yes|no
//
// brought to you by []==ThoR®
//
var x = screen.availWidth
var y = screen.availHeight
var spaceSx = (x - width)/2
//var spaceUp = 0 // To Point PopUp top
var spaceUp = (y - height)/2 // To point PopUp in the center
winparams = "" // Start Params for Window
winparams = winparams + "scrollbars=" + scrollbar // Scroll
winparams = winparams + ",resizable=no" // Resizable
winparams = winparams + ",left=" + spaceSx // Space From Left
winparams = winparams + ",top=" + spaceUp // Space From Top
winparams = winparams + ",width=" + width // Windowz Width
winparams = winparams + ",height=" + height // Windowz Height
winparams = winparams + ",directory=no" // The Tool Bars Menu
winparams = winparams + ",status=no" //
winparams = winparams + ",location=no" //
winparams = winparams + ",toolbar=no" // -------------------
// Open window
ThoR = window.open(theUrl,WinName,winparams);
// Active window
ThoR.focus();
}
<a href="javascript:OpenUp('img.htm','WinName','640','480','no');" title="open">Apri</a>
<script language="JavaScript" type="text/JavaScript">
function viewImage (img,width,height) {
var w;
img = img.src ? img.src : img;
if (w && !w.closed)
w.close();
w = open ('', 'imageView',
'menubar=0,locationbar=0,statusbar=0,resizable=0'
+ ',scrollbars=0,width=' + width + ',height=' + height + '');
var html = '';
html += '<HTML><head><title>:: Geronimo Stilton ::</title></head><BODY bgcolor="#DBF5B6" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">';
html += '<IMG SRC="' + img + '">';
html += '</BODY></HTML>';
w.document.open();
w.document.write(html);
}
</script>
<a href="javascript:viewImage('img/special01.gif','175','274');">Zoom</a>
riodacri ha scritto:credo di essermi spiegato abbastanza male: quel che vorrei creare è una finestra web alla quale si accede cliccando su una foto in miniatura e nella quale appaia solo ed esclusivamente la foto ingrandita rispetto a quella sulla quale si è cliccato per generare questa finestra. in sintesi, mi serve per inserire delle foto in un sito in formato un po' pesante e che non pesino sull'apertura della pagina, ma solo sull'apertura di detta finestra, cosicchè le vedrà ingrandite solo chi è interessato alla stessa.
riodacri ha scritto:altra cosa: per evitare che le foto vengano copiate, come si crea la finestra nella quale appare la scritta SU QUESTE FOTO IL TASTO DESTRO DEL MOUSE È DISATTIVATO?
grazie, ciao, nic
<script language="JavaScript">
<!--
function ow(imageName) {
gURL = "http://www.ilmiosito.it/" + imageName;
var Graph = new Image();
var gWidth = 740; // A default width and height
var gHeight = 480;
Graph.src = gURL; // Fetch the graph
fContinue = true;
for (iIndex = 0
;iIndex < 100000 && fContinue == true
;iIndex++){
fContinue = Graph.complete;
}
gWidth = Graph.width;
gHeight = Graph.height;
globalContent="<html><title>Le Mie Foto "
+imageName
+"</title><body oncontextmenu='return false' bgcolor='#FFFFFF' leftmargin='0'"
+" topmargin='0' marginheight='0' marginwidth='0'"
+" onBlur='self.close()'><img src='"+gURL+"'></body></html>";
window.open("javascript:opener.globalContent",
"Le_Mie_Foto",
"height="+gHeight+",width="+gWidth+",dependent=yes,status=no,toolbar=no,personalbar=no,hotkeys=no,menubar=no,location=no").focus();
}
-->
</script>
Eliminare voce da "riquadro spostamento" Autore: LinoM999 |
Forum: Sistemi Operativi Windows Risposte: 1 |
Exell trova numeri in un riquadro e cancella nell'altro Autore: Omocaig |
Forum: Applicazioni Office Windows Risposte: 9 |
Exell trova numeri in un riquadro e cancella nell'altro Autore: shakespea |
Forum: Applicazioni Office Windows Risposte: 20 |
Visitano il forum: Nessuno e 29 ospiti