Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1

    popup non funziona in IE

    Ciao a tutti, mi servirebbe aiuto con una funzione popup che funziona bene in Firefox, ma non in IE, o Safari (e magari pure in altri)

    La funzione nella head e' questa:

    var newwindow = ''
    function popitup(url) {
    if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
    else {
    newwindow=window.open(url,'htmlname','width=540,he ight=365,resizable=1');}
    }

    Nella pagina il codice e' cosi:

    [img]img.jpg[/img]

    non capisco dove sia il problema....

  2. #2
    Frontend samurai L'avatar di fcaldera
    Registrato dal
    Feb 2003
    Messaggi
    12,924
    prova a scrivere così

    Vuoi aiutare la riforestazione responsabile?

    Iscriviti a Ecologi e inizia a rimuovere la tua impronta ecologica (30 alberi extra usando il referral)

  3. #3

    non funziona

    grazie, ma non funziona...quando lo sostituisco mi manda in cima alla pagina o al link interno con name="#"

  4. #4
    Frontend samurai L'avatar di fcaldera
    Registrato dal
    Feb 2003
    Messaggi
    12,924
    posta il codice che hai scritto ora
    Vuoi aiutare la riforestazione responsabile?

    Iscriviti a Ecologi e inizia a rimuovere la tua impronta ecologica (30 alberi extra usando il referral)

  5. #5

  6. #6

    questo e' tutto il mio file java

    forse il problema e' qualche conflitto....


    <SCRIPT LANGUAGE="JavaScript">
    <!--
    Image1= new Image(2048,2536)
    Image1.src = "http://www.holiday-apartment-tuscany.net/images/tuscan_generic_images/bg_tuscany.jpg"
    // -->
    </SCRIPT>

    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_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_findObj(n, d) { //v3.0
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }


    var highlightcolor="lightyellow"

    var ns6=document.getElementById&&!document.all
    var previous=''
    var eventobj

    //Regular expression to highlight only form elements
    var intended=/INPUT|TEXTAREA|SELECT|OPTION/

    //Function to check whether element clicked is form element
    function checkel(which){
    if (which.style&&intended.test(which.tagName)){
    if (ns6&&eventobj.nodeType==3)
    eventobj=eventobj.parentNode.parentNode
    return true
    }
    else
    return false
    }

    //Function to highlight form element
    function highlight(e){
    eventobj=ns6? e.target : event.srcElement
    if (previous!=''){
    if (checkel(previous))
    previous.style.backgroundColor=''
    previous=eventobj
    if (checkel(eventobj))
    eventobj.style.backgroundColor=highlightcolor
    }
    else{
    if (checkel(eventobj))
    eventobj.style.backgroundColor=highlightcolor
    previous=eventobj
    }
    }

    ;
    var newwindow = ''
    function popitup(url) {
    if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
    else {
    newwindow=window.open(url,'htmlname','width=540,he ight=365,resizable=1');}
    }

    ;
    var newwindow = ''
    function popituplarger(url) {
    if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
    else {
    newwindow=window.open(url,'htmlname','width=540,he ight=600,resizable=1');}
    }

  7. #7

    allora posto tutto il codice

    vediamo se cosi mi potete aiutare a trovare il conflitto.....il codice nella head l'ho messo qua sopra

    <HTML>
    <HEAD>
    <TITLE>Wonderful Cortona Toscana Villa Vignacce </TITLE>
    <META name="description" content="Standing near Cortona this wonderful farmhouse is the example of a perfectly restored Toscana Villa for your stylish holidays.">
    <META name="keywords" content="Toscana Villa, villa near Cortona">
    <link rel="stylesheet" href="../styles.css">

    <script language="JavaScript">
    <!--

    function SymError()
    {
    return true;
    }

    window.onerror = SymError;

    //-->
    </script>

    <script type="text/javascript" language="JavaScript1.2" src="../jas.js"></script>
    <script language="JavaScript">
    <!--

    function SymError()
    {
    return true;
    }

    window.onerror = SymError;

    //-->
    </script>
    </HEAD>
    <BODY background="../images/tuscan_generic_images/bg_tuscany.jpg" onLoad="MM_preloadImages('../tuscan_generic_images/bg_tuscany.jpg','../images/tuscan_generic_images/location_2.jpg','../images/tuscan_generic_images/reserve_2.jpg','../images/tuscan_generic_images/gallery_2.jpg','../images/tuscan_generic_images/location_1.jpg','../images/tuscan_generic_images/reserve_1.jpg','../images/tuscan_generic_images/gallery_1.jpg')">

    <div style="cursorointer; position:absolute; top:300px; left:50px; z-index:1; width:140; height:200; font-family: Tahoma, Verdana, Arial; font-size: 12px; color: #4E3A1D; text-decoration: none;">

    Private Villas



    Farmhouses



    B&B



    Mansions






    Custom Your Vacation

    </div>
    <div style="cursorointer; position:absolute; top:50px; left:600px; z-index:2; width:100; height:100; font-family: Tahoma, Verdana, Arial; font-size: 10px; color: #4E3A1D; text-decoration: none;">

    Contact

    Telephone

    Rent-a-Car


    <div id="ciGJxP" style="z-index:100;position:absolute"></div><div id="scGJxP" style="display:inline"></div><div id="sdGJxP" style="display:none"></div><script type="text/javascript">var seGJxP=document.createElement("script");seGJxP.typ e="text/javascript";seGJxP.defer=true;seGJxP.src=(location .protocol.indexOf("https")==0?"https://secure.providesupport.com/image":"http://image.providesupport.com")+"/js/giofed/safe-textlink.js?ps_h=GJxP\u0026ps_t="+new Date().getTime()+"\u0026online-link-html=%3Cdiv%20style%3D%22cursor%3Apointer%3Bfont-family%3ATahoma%2C%20Verdana%2C%20Arial%3Bfont-size%3A10px%3Bcolor%3A%23666666%22%3E%3Cb%3EChat%2 0Online%20%3Cdiv%20style%3D%22display%3Ainline%3Bc olor%3A%20green%22%3EON%3C/div%3E%3C/b%3E%3C/div%3E\u0026offline-link-html=%3Cdiv%20style%3D%22cursor%3Apointer%3Bfont-family%3ATahoma%2C%20Verdana%2C%20Arial%3Bfont-size%3A10px%3Bcolor%3A%23666666%22%3EChat%20Online %20%3Cdiv%20style%3D%22display%3Ainline%3Bcolor%3A %20red%22%3EOFF%3C/div%3E%3C/div%3E";document.getElementById("sdGJxP").appendCh ild(seGJxP)</script><noscript><div style="display:inline">%3Cdiv%20style%3D%22cursor%3Apointer%3Bfont-family%3ATahoma%2C%20Verdana%2C%20Arial%3Bfont-size%3A10px%3Bcolor%3A%23666666%22%3E%3Cb%3EChat%2 0Online%20%3Cdiv%20style%3D%22display%3Ainline%3Bc olor%3A%20green%22%3EON%3C/div%3E%3C/b%3E%3C/div%3E</div></noscript>

    </div>

    <div style="cursorointer; position:absolute; top:72px; left:755px; z-index:3; width:30; height:20; font-family: Tahoma, Verdana, Arial; font-size: 10px; color: #999999; text-decoration: none;">
    Home
    Espa&ntilde;ol

    </div>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td>

    <table border="0" width="817" cellspacing="0" cellpadding="0">
    <tr>
    <td width="817"></td>
    </tr>
    <tr>
    <td><table border="0" width="817" cellspacing="0" cellpadding="0">
    <tr>

    <td width="29"></td>

    <td valign="top" align="left">

    <table border="0" width="788" cellspacing="0" cellpadding="0">
    <tr><td width="788"></td></tr>
    <tr><td>
    <table border="0" width="788" cellspacing="0" cellpadding="0">
    <tr>
    <td width="185"></td>
    <td width="583"><div style="padding-left:20px; padding-top:140px;">[img]../images/tuscany_farmhouse/villa_vignacce/grandi/villa_vignacce_1.jpg[/img]</div></td>
    </tr>
    </table>

    </td>
    </tr>
    </table></td>
    </tr>

    </table>
    </td>
    </tr>
    </table>
    </td>
    <tr>
    <td>
    <table width="100%" height="70" cellspacing="0" cellpadding="0">
    <tr>
    <td class="bodytext"><div style="padding-left:235; padding-top:20;width:583px;">

    [img]../images/tuscan_generic_images/checked.jpg[/img]Pool [img]../images/tuscan_generic_images/checked.jpg[/img]Close to Outlets [img]../images/tuscan_generic_images/checked.jpg[/img]Near City/Town [img]../images/tuscan_generic_images/checked.jpg[/img]Breathtaking Views [img]../images/tuscan_generic_images/checked.jpg[/img]Oil Production [img]../images/tuscan_generic_images/checked.jpg[/img]Parking
    [img]../images/tuscan_generic_images/checked.jpg[/img]Private Garden
    [img]../images/tuscan_generic_images/checked.jpg[/img]Fireplace [img]../images/tuscan_generic_images/checked.jpg[/img]Public Transportation [img]../images/tuscan_generic_images/checked.jpg[/img]Wine Production
    </div></td>
    </tr>
    <tr>
    <td>

    <table width="815" cellspacing="0" cellpadding="0" border="0">
    <tr><td><div style="padding-left:235; padding-top:20;"><table border="0" cellspacing="0" cellpadding="0">

    <tr>
    <td height="150" valign="top" class="bodytext" width="66%" colspan="2">The location of this estate in the Cortona countryside is idyllic. Just 5 minutes walking from the main village, it encompasses the benefits of being in the countryside and yet close to main services and shopping outlets (Prada, Gucci, Calvin Klein, etc.).
    Farmhouse Vignacce central location makes it perfect for self catering accommodation in Tuscany . Located just South-East of Siena , the Farmhouse Vignacce is very close (3.5 Miles) to the A-1 highway, the main one in Italy which connects to Rome and Florence in two and one hours respectively. Other daytrips are Siena , San Giminiano, Pisa , Lucca , Arezzo , Perugia and Assisi .</td><td height="160" valign="top" align="right">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_2.jpg[/img]</td>
    </tr>
    <tr>
    <td height="150" valign="top" class="bodytext" width="66%" colspan="2">This farmhouse accommodation in Tuscany is surrounded by three hectares of land, where sits an organic garden, blossoming flowers, fruit-trees and the exclusive swimming-pool. Here below are the structures selected by Holiday Apartment Tuscany where you will enjoy your stay at the farmhouse Vignacce.
    Vignacce not only means a holiday home with pool in Tuscany but you are step away from cultural and culinary tours, visits to the area's most renowned wine cellars, oil and cheese tasting. At Vignacce you will be able to discover: our artistic Etruscan heritage, Tuscan culinary, historical traditions, our natural environment, golf tournaments, and trips on horseback and mountain-bike tours on nearby gravel roads.</td><td height="160" valign="top" align="right">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_3.jpg[/img]</td>
    </tr>
    <tr>
    <td valign="top" class="bodytext" width="70%" height="215" colspan="3"><u>Villa Vignacce is composed of three recently remodeled apartments</u>:


    Il Granaio: modern and luxurious 90 square meters (810 square feet) self catering accommodation in Tuscany. Perfect Tuscan style meets luxury and comfort. Carved out of the original granary of the villa, this apartment has: one suite with full bathroom and dressing room, a living room with fireplace, fully equipped eat-in kitchen, and entrance with bathroom.


  8. #8

    seconda parte

    Il Camino: this 90 square meters (810 square feet) apartment is composed by a fully equipped eat-in kitchen, two suites with two full bathrooms, and the library with fireplace. A romantic apartment enriched by the central presence of an antique sit-in fireplace and library. Enjoy from the windows of this farmhouse accommodation in Tuscany a gorgeous landscape


    Il Giardino: with direct access to the garden and is composed by one bedroom with two full bathrooms, and eat-in kitchen. An idyllic apartment of 90 square meters (810 square feet) created from the stable of the villa, where details of the past are kept in its original form. Modern comfort meets history. In particular, one bathroom has been recreated inside an antique wine vat.
    </td>
    </tr>
    <tr>
    <td width="100%" valign="middle" align="center" colspan="3">
    <table width="60%" border="0"><tr>
    <td>[img]../images/tuscan_generic_images/reserve_1.jpg[/img]</td><td>[img]../images/tuscan_generic_images/gallery_1.jpg[/img]</td>
    </tr>
    <tr>
    <td colspan="2" align="center">[img]../images/tuscan_generic_images/location_1.jpg[/img]</td>
    </tr>
    </table>
    </td>

    </tr>
    <tr>
    <td width="185" height="145">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_4.jpg[/img]</td><td width="185" height="145">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_5.jpg[/img]</td><td width="185" height="145">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_6.jpg[/img]</td>
    </tr>
    <tr>
    <td width="185" height="145">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_7.jpg[/img]</td><td width="185" height="145">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_8.jpg[/img]</td><td width="185" height="145">[img]../images/tuscany_farmhouse/villa_vignacce/ridotte/villa_vignacce_9.jpg[/img]</td>
    </tr>
    <tr>
    <td align="left" width="50" valign="middle"><a name="reserve">[img]../images/tuscan_generic_images/prices_written.jpg[/img]</a></td>
    </tr>
    <tr>
    <td class="formtext" colspan="3">PLEASE NOTE: Prices are intended per week per apartment, not per person.
    Some extra seasonal costs may apply.</td>
    </tr>
    <tr>
    <td align="center" colspan="3" height="100">
    <table cellspacing="3" cellpadding="0" border="0" width="100%">
    <tr>
    <td class="prices"></td><td class="prices">14-0108-04
    02-1130-11</td><td class="prices">08-0401-07
    02-0930-09
    28-1002-11</td><td class="prices">01-0702-09</td><td class="prices">30-0928-10</td>

    </tr>
    <tr>
    <td class="prices">Camino</td><td class="prices">€580</td><td class="prices">€780</td><td class="prices">€940</td><td class="prices">€680</td>
    </tr>
    <tr>
    <td class="prices">Giardino</td><td class="prices">€500</td><td class="prices">€730</td><td class="prices">€890</td><td class="prices">€640</td>

    </tr>
    <tr>
    <td class="prices">Granaio</td><td class="prices">€540</td><td class="prices">€740</td><td class="prices">€900</td><td class="prices">€630</td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>

    <td align="center" height="50" valign="top" colspan="3">[img]../images/tuscan_generic_images/reservebanner.jpg[/img]</td>
    </tr>
    <tr>
    <td colspan="3" class="prices" height="50" valign="top">To request availability at Villa Vignacce, please fill out the form below. We will respond to your Email within 24 hours. Feel free to include all the necessary requests to make your holiday in Tuscany even more special !</td>
    </tr>
    <tr>
    <td colspan="4" width="100%" align="center">

    <script Language="JavaScript">

    <!--
    function formulario(form){

    if (form.name.value == ""){

    alert("Please insert your name");

    form.name.focus();

    return (false);

    }

    if (form.Properties.value == ""){

    alert("Please select a property");

    form.surname.focus();

    return (false);

    }

    if (form.surname.value == ""){

    alert("Please insert your last name");

    form.surname.focus();

    return (false);

    }

    if (form.Period.value == ""){

    alert("Please select the week you wish to reserve");

    form.Period.focus();

    return (false);

    }

    if (form.email.value.indexOf('@', 0) == -1){

    alert("Please insert a valid Email address");

    form.email.focus();

    return (false);

    }

    return (true);

    }

    //-->

    </script>



    <form onKeyUp="highlight(event)" onClick="highlight(event)" method="post" action="../submit.php" name='form' onSubmit='return formulario(this)'>


    <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="eeeeee">
    <span class="formtext">Fields marked with an asterisk (*) are mandatory.
    Please double check your data is correct before hitting the Send button. Thank You.</span>
    <tr bgcolor="#EBE8D9">
    <td width="30%" class="formtext">*Select a Property:</td>

    <td width="70%">
    <select name="Properties">
    <option value="" selected>Select Apartment</option>

    <OPTION value="">--------------------------------------------------------------------------------------------------</OPTION>

    <option value="Giardino">Giardino</option>
    <option value="Granaio">Granaio</option>
    <option value="Camino">Camino</option>
    <option value="Tutti e tre">All of Them</option>

    </select>
    </td>

    </tr>


    <tr bgcolor="#E8E3CA">

    <td width="30%" class="formtext">*Name:</td>

    <td width="70%"> <input type="text" name="name" size="66">

    </td>

    </tr>

    <tr bgcolor="#EBE8D9">

    <td width="30%" class="formtext">*Last Name:</td>

    <td width="70%"> <input type="text" name="surname" size="66">

    </td>

    </tr>
    <tr bgcolor="#E8E3CA">
    <td width="30%" class="formtext">Address:</td>
    <td width="70%"> <input type="text" name="Address" size="66">
    </td>
    </tr>

  9. #9

    terza parte

    <tr bgcolor="#EBE8D9">
    <td width="30%" class="formtext">City:</td>
    <td width="70%"> <input type="text" name="City" size="66">
    </td>
    </tr>

    <tr bgcolor="#E8E3CA">

    <td width="30%" class="formtext">Country:</td>

    <td width="70%"> <input type="text" name="country" size="66"></td>

    </tr>
    <tr bgcolor="#EBE8D9">
    <td width="30%" class="formtext">Number of Children:</td>
    <td width="70%"> <input name="NOC" type="text" id="NOC" size="66">
    </td>
    </tr>
    <tr bgcolor="#E8E3CA">
    <td width="30%" class="formtext">Age of Each:</td>
    <td width="70%"> <input onFocus="if (this.value == 'example: 7, 8, 9, 10, etc.') {this.value = '';}" name="AOE" type="text" id="AOE" value="example: 7, 8, 9, 10, etc." size="66">
    </td>

    </tr>
    <tr bgcolor="#EBE8D9">
    <td width="30%" class="formtext">Number of Adults:</td>
    <td width="70%"> <input name="NOA" type="text" id="NOA" size="66">
    </td>
    </tr>
    <tr bgcolor="#E8E3CA">

    <td width="30%" class="formtext">*Email:</td>

    <td width="70%"> <input type="text" name="email" size="66">

    </td>

    </tr>
    <tr bgcolor="#ebe8d9">
    <td width="30%" class="formtext">Phone:</td>

    <td width="70%"> <input type="text" name="Phone" size="66">
    </td>
    </tr>

    <tr bgcolor="#E8E3CA">
    <td width="30%" class="formtext">*Period Desired:</td>
    <td width="70%"> <input name="Period" type="text" id="NOA" size="66">
    </td>
    </tr>

    <tr bgcolor="#ebe8d9">
    <td width="30%" class="formtext">Comments:</td>
    <td width="70%"> <textarea name="comments" cols="50" rows="4"></textarea>
    </td>

    </tr>

    <tr bgcolor="#E8E3CA">

    <td width="30%" nowrap>

    <input type="hidden" name="sme_form" value="1">

    <input type="hidden" name="emaill" value="holidayapart@gmail.com">

    <input type="hidden" name="sme_form_c" value="Reservation request from www.holiday-apartment-tuscany.net from Villa Vignacce">

    </td>

    <td width="70%"><input type="submit" value="Send" name="submit">

    <input type="reset" value="Clear" name="reset">

    </td>

    </tr>

    </table>

    </form>

    </td>
    </tr>
    </table></div></td></tr>

    <tr>
    <td colspan="2">
    <div style="padding-top:20px; padding-left:235px; padding-bottom:20px; font-family: Tahoma, Verdana, Arial; font-size:9px; color: #999999;" align="center">
    Holiday Apartment Tuscany - Toscana Villa - Tuscany Farmhouse - Tuscany Bed&Breakfast - Luxury Mansions - Turismo Rural Toscana Villa Toscana - Toscana Turismo Rural

    - Apartamentos Toscana - Mansiones Toscana - Other Links - Enlaces Turisticos - Site Map
    F.A.Q. - Aiuda Preguntas Frequentes

    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2"><div style="padding-top:20px; padding-left:220px; padding-bottom:20px; font-family: Tahoma, Verdana, Arial; font-size:9px; color: #999999;" align="center">&#169; 2006 Holiday Apartment Tuscany, Divino S.L. Spain, Barcelona. All rights reserved. | Privacy</div></td>
    </tr>

    </table>

    </td>
    </tr>
    </table>
    </td>

    </tr>
    </table>
    <div style="position:absolute; top:75px; left:230px; cursorointer; z-index:4;" width="115" height="40">
    [img]../images/tuscany_farmhouse/villa_vignacce/villa_vignacce_written.jpg[/img]
    </div>

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-335330-1";
    urchinTracker();
    </script>
    </BODY>
    </HTML>

  10. #10
    A FCaldera

    Forse il fatto che ho un bisogno "disperato" di aiuto ma siccome c'e' poca gloria (o forse sapere?) su pop up per immagini in js, nessuno mi considera, nemmeno dopo aver postato chilometri di codice. Bhe, comunque grazie per la funzioncina che non funziona (e qua mi ci e' scappato un bel giochino di parole triste triste).

    Ciao

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.