Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jul 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using 2 applets/having to reload pg. for applets to work (code now included in mssg)

    I have used 2 applets on a page (the page also uses layers and the applets are what the layers call up...one is text the other is images) and am having a problem getting them to work the first time the page loads. I almost always have to reload the page at least once, sometimes twice, before both applets begin working. After that they work great, but obviously they need to work first time around. I have tried adding a preload script for images, but that didn't seem to help. Any suggestions would be greatly appreciated.

    The url is: http://www.netdawg.com/vkp/healthcare2.html


    And here is the page source:

    <html>

    <head>
    <style>
    <!--

    A.type1:link {color:#660000; text-decoration:none;}
    A.type1:visited {color:#660000; text-decoration:none;}
    A.type1:active {color:#000000; text-decoration:underline overline;}
    A.type1:hover {color:#000000; text-decoration:underline overline;}

    A.type2:link {color:#003300; text-decoration:none;}
    A.type2:visited {color:#003300; text-decoration:none;}
    A.type2:active {color:#003300; text-decoration:none;}
    A.type2:hover {color:#000000; text-decorationverline underline;}

    A.type3:link {color:#993333; text-decoration:none;}
    A.type3:visited {color:#993333; text-decoration:none;}
    A.type3:active {color:#993333; text-decoration:none;}
    A.type3:hover {color:#000000; text-decorationverline underline;}

    A.type4:link {color:#cc9900; text-decoration:none;}
    A.type4:visited {color:#cc9900; text-decoration:none;}
    A.type4:active {color:#cc9900; text-decoration:none;}
    A.type4:hover {color:#000000; text-decorationverline underline;}


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

    if (document.images)
    {
    pic1on= new Image(100,25);
    pic1on.src="images/newhome2.gif";

    pic1off= new Image(100,25);
    pic1off.src="images/newhome1.gif";



    pic2on= new Image(100,25);
    pic2on.src="images/newabout2.gif";

    pic2off= new Image(100,25);
    pic2off.src="images/newabout1.gif";



    pic3on= new Image(100,25);
    pic3on.src="images/newpeople2.gif";

    pic3off= new Image(100,25);
    pic3off.src="images/newpeople1.gif";



    pic4on= new Image(100,25);
    pic4on.src="images/newprojects2.gif";

    pic4off= new Image(100,25);
    pic4off.src="images/newprojects1.gif";


    pic5on= new Image(100,25);
    pic5on.src="images/newservices2.gif";

    pic5off= new Image(100,25);
    pic5off.src="images/newservices1.gif";


    pic6on= new Image(100,25);
    pic6on.src="images/newsafety2.gif";

    pic6off= new Image(100,25);
    pic6off.src="images/newsafety1.gif";


    pic7on= new Image(100,25);
    pic7on.src="images/newcontact2.gif";

    pic7off= new Image(100,25);
    pic7off.src="images/newcontact1.gif";













    }

    function lightup(imgName)
    {
    if (document.images)
    {
    imgOn=eval(imgName + "on.src");
    document[imgName].src= imgOn;
    }
    }

    function turnoff(imgName)
    {
    if (document.images)
    {
    imgOff=eval(imgName + "off.src");
    document[imgName].src= imgOff;
    }
    }

    //-->
    </script>

    <title>VK Powell Construction - Projects - Healthcare</title>
    <style type="text/css">


    #lyr1 {position:absolute; left:585px; top: 270px; width:100px; height:100px; background-color:#ffffff;visibility:hidden;}
    #lyr2 {position:absolute; left:255px; top:174px; width:245px; height:200px; background-color:#ffffff;visibility:hidden;}
    #lyr3 {position:absolute; left:255px; top:174px; width:100px; height:100px; background-color:#ffffff;visibility:hidden;}
    #lyr4 {position:absolute; left:255px; top:174px; width:250px; height:100px; background-color:#ffffff;visibility:hidden;}
    #lyr5 {position:absolute; left:255px; top:174px; width:100px; height:100px; background-color:#ffffff;visibility:hidden;}
    #lyr6 {position:absolute; left:255px; top:174px; width:250px; height:100px; background-color:#ffffff;visibility:hidden;}
    #lyr7 {position:absolute; left:585px; top:270px; width:100px; height:65px; background-color:#ffffff;visibility:hidden;}
    #lyr8 {position:absolute; left:585px; top:270px; width:250px; height:60px; background-color:#ffffff;visibility:hidden;}
    #lyr9 {position:absolute; left:585px; top:270px; width:149px; height:60px; background-color:#ffffc6;visibility:hidden;}
    #lyr10 {position:absolute; left:585px; top:270px; width:149px; height:60px; background-color:#ffffc6;visibility:hidden;}


    </style>
    <script language="JavaScript1.2" type="text/javascript">
    /*******************************************************************
    Made by Martial Boissonneault © 2001 http://getElementById.com/
    May be used and changed freely as long as this msg is intact
    Visit http://getElementById.com/ for more free scripts and tutorials.
    ********************************************************************/
    function ShowHide(id, visibility) {
    divs = document.getElementsByTagName("div");
    divs[id].style.visibility = visibility;
    }
    function showBody(){
    if(document.getElementById)
    document.getElementById("bdy").style.visibility = "visible";
    }
    onload=showBody;

    </script>
    </head>

    <body id="bdy" style="font-size: 8pt; font-family: Arial" leftmargin="0" background="images/newbg4.jpg" topmargin="0">

    <table border="0" cellpadding="0" cellspacing="0" width="785" height="455">
    <tr>
    <td width="222" height="202" valign="top"><br>
    &nbsp; <img src="images/logo.jpg" alt="logo.jpg (7794 bytes)" WIDTH="163" HEIGHT="40"><br>
    <br>
    <br>
    <br>
    <br>
    <div align="left"><table border="0" cellpadding="0" cellspacing="0" width="220" height="308">
    <tr>
    <td width="220" style="margin-top: 6px" height="40"></td>
    </tr>
    <tr>
    <td valign="top" height="41" width="220">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a HREF="index2.html" onMouseover="lightup('pic1')" onMouseout="turnoff('pic1')"><img SRC="images/newhome1.gif" name="pic1" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    <tr>
    <td width="220" height="41">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a HREF="about2.html" onMouseover="lightup('pic2')" onMouseout="turnoff('pic2')"><img SRC="images/newabout1.gif" name="pic2" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    <tr>
    <td width="220" height="41">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a HREF="people2.html" onMouseover="lightup('pic3')" onMouseout="turnoff('pic3')"><img SRC="images/newpeople1.gif" name="pic3" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    <tr>
    <td width="220" height="41">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a HREF="projects2.html" onMouseover="lightup('pic4')" onMouseout="turnoff('pic4')"><img SRC="images/newprojects1.gif" name="pic4" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    <tr>
    <td width="220" height="41">&nbsp;&nbsp;&nbsp;&nbsp; <a HREF="services2.html" onMouseover="lightup('pic5')" onMouseout="turnoff('pic5')"><img SRC="images/newservices1.gif" name="pic5" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    <tr>
    <td width="220" height="41">&nbsp;&nbsp; <a HREF="safety2.html" onMouseover="lightup('pic6')" onMouseout="turnoff('pic6')"><img SRC="images/newsafety1.gif" name="pic6" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    <tr>
    <td width="220" valign="top" height="41"><a HREF="safety2.html" onMouseover="lightup('pic6')" onMouseout="turnoff('pic6')">&nbsp; </a><a HREF="contact2.html" onMouseover="lightup('pic7')" onMouseout="turnoff('pic7')"><img SRC="images/newcontact1.gif" name="pic7" border="0" WIDTH="161" HEIGHT="40"></a></td>
    </tr>
    </table>
    </div></td>
    <td width="371" height="202" valign="top"><br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <div align="center"><center><table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><img src="images/kittitas3.jpg" alt="kittitas3.jpg (13101 bytes)" style="margin-top: 13px" WIDTH="325" HEIGHT="325"></td>
    </tr>
    </table>
    </center></div></td>
    <td valign="top" height="202" style="padding-left: 0px; padding-top: 18px"><br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <small><font color="#800000"><strong><a href="javascript://" onclick="ShowHide('lyr1','visible');ShowHide('lyr2','hidden');ShowHide('lyr3','hidden');ShowHide('ly r4','hidden');ShowHide('lyr5','hidden');ShowHide('lyr6','visible');ShowHide('lyr7','hidden');ShowHid e('lyr8','hidden');ShowHide('lyr9','hidden');ShowHide('lyr10','hidden')
    " class="type1">Central Wa. Family Medicine<br>
    </a><a href="javascript://" onclick="ShowHide('lyr2','visible');ShowHide('lyr3','hidden');ShowHide('lyr4','hidden');ShowHide('ly r5','hidden');ShowHide('lyr6','hidden');ShowHide('lyr7','visible');ShowHide('lyr8','hidden');ShowHid e('lyr9','hidden');ShowHide('lyr10','hidden');ShowHide('lyr1','hidden')
    " class="type1">Northstar Lodge Cancer Center</a><br>
    <a href="javascript://" onclick="ShowHide('lyr3','visible');ShowHide('lyr4','hidden');ShowHide('lyr5','hidden');ShowHide('ly r6','hidden');ShowHide('lyr7','hidden');ShowHide('lyr8','visible');ShowHide('lyr9','hidden');ShowHid e('lyr10','hidden');ShowHide('lyr1','hidden');ShowHide('lyr2','hidden')
    " class="type1">West Pavillion</a><br>
    <a href="javascript://" onclick="ShowHide('lyr4','visible');ShowHide('lyr5','hidden');ShowHide('lyr6','hidden');ShowHide('ly r7','hidden');ShowHide('lyr8','hidden');ShowHide('lyr9','visible');ShowHide('lyr10','hidden');ShowHi de('lyr1','hidden');ShowHide('lyr2','hidden');ShowHide('lyr3','hidden')
    " class="type1">Yakima Valley Memorial Hospital</a><br>
    <a href="javascript://" onclick="ShowHide('lyr5','visible');ShowHide('lyr6','hidden');ShowHide('lyr7','hidden');ShowHide('ly r8','hidden');ShowHide('lyr9','hidden');ShowHide('lyr10','visible');ShowHide('lyr1','hidden');ShowHi de('lyr2','hidden');ShowHide('lyr3','hidden');ShowHide('lyr4','hidden')
    " class="type1">Kittitas Valley Commty. Hospital</a></strong></font></small><br>
    </td>
    </tr>
    </table>

    <p><br>
    <br>
    </p>

    <p>&nbsp;</p>

    <p><br>
    <br>
    <font face="Arial"><br>
    </font></p>
    <div id="lyr1"><div align="center"><center>

    <table background="images/d1_gator.gif" width="324" height="161" cellpadding="0" cellspacing="0" bgcolor="#FFFFCE">
    <tr>
    <td valign="top" align="left" width="420" height="91" bgcolor="#FFFFFF">&nbsp;
    <applet NAME="applet1" ARCHIVE="vText.jar" CODE="vText.class" WIDTH="215" HEIGHT="205" HSPACE="0" VSPACE="0" style="border: 1px groove rgb(128,0,0)">
    <param name="copyright" value="Copyright (c) 2000 Luis M. Pabon - http://luis.pabon.com">
    <param name="source" value="@text/messages6.txt">
    <param name="bgimage">
    <param name="bgfixed" value="1">
    <param name="fgcolor" value="000000">
    <param name="fgimage">
    <param name="fgrepeat" value="0">
    <param name="left" value="12">
    <param name="right" value="12">
    <param name="fontsize" value="16">
    <param name="fontstyle">
    <param name="linesp" value="20">
    <param name="scrollmode" value="3">
    <param name="scrollstep" value="2">
    <param name="scrcolor" value="660000">
    <param name="align" value="justify">
    </applet>
    </td>
    </tr>
    </table>
    </center></div>

    <p><br>
    </p>
    </div><div id="lyr2">

    <p>
    <applet code="lvbox.class" archive="lvbox.jar" align="baseline" width="325" height="325">
    <param name="credits" value="applet by www.cromoteca.com">
    <param name="background1" value="ffffff">
    <param name="background2" value="ffffff">
    <param name="foreground" value="000000">
    <param name="textalign" value="1">
    <param name="datafile" value="messages7.txt">
    <param name="font" value="Helvetica|1|13">
    <param name="separator" value="|">
    <param name="effectduration" value="500">
    <param name="pauseduration" value="2000">
    </applet>
    </p>

    <p>&nbsp;</p>
    </div><div id="lyr3">

    <p>
    <applet code="lvbox.class" archive="lvbox.jar" align="baseline" width="325" height="325">
    <param name="credits" value="applet by www.cromoteca.com">
    <param name="background1" value="ffffff">
    <param name="background2" value="ffffff">
    <param name="foreground" value="000000">
    <param name="textalign" value="1">
    <param name="datafile" value="messages8.txt">
    <param name="font" value="Helvetica|1|13">
    <param name="separator" value="|">
    <param name="effectduration" value="500">
    <param name="pauseduration" value="2000">
    </applet>
    </p>
    </div><div id="lyr4">

    <p>
    <applet code="lvbox.class" archive="lvbox.jar" align="baseline" width="325" height="325">
    <param name="credits" value="applet by www.cromoteca.com">
    <param name="background1" value="ffffff">
    <param name="background2" value="ffffff">
    <param name="foreground" value="000000">
    <param name="textalign" value="1">
    <param name="datafile" value="messages9.txt">
    <param name="font" value="Helvetica|1|13">
    <param name="separator" value="|">
    <param name="pauseduration" value="3000">
    </applet>
    </p>
    </div><div id="lyr5">

    <p>
    <applet code="lvbox.class" archive="lvbox.jar" align="baseline" width="325" height="325">
    <param name="credits" value="applet by www.cromoteca.com">
    <param name="background1" value="ffffff">
    <param name="background2" value="ffffff">
    <param name="foreground" value="000000">
    <param name="textalign" value="1">
    <param name="datafile" value="messages10.txt">
    <param name="font" value="Helvetica|1|13">
    <param name="separator" value="|">
    <param name="effectduration" value="500">
    <param name="pauseduration" value="2000">
    </applet>
    </p>
    </div><div id="lyr6">

    <p>
    <applet code="lvbox.class" archive="lvbox.jar" align="baseline" width="325" height="325">
    <param name="credits" value="applet by www.cromoteca.com">
    <param name="background1" value="ffffff">
    <param name="background2" value="ffffff">
    <param name="foreground" value="000000">
    <param name="textalign" value="1">
    <param name="datafile" value="messages6.txt">
    <param name="font" value="Helvetica|1|13">
    <param name="separator" value="|">
    <param name="effectduration" value="500">
    <param name="pauseduration" value="2000">
    </applet>
    </p>
    </div><div id="lyr7">

    <p>
    <applet NAME="applet1" ARCHIVE="vText.jar" CODE="vText.class" WIDTH="215" HEIGHT="205" HSPACE="0" VSPACE="0" style="border: 1px groove rgb(128,0,0)">
    <param name="copyright" value="Copyright (c) 2000 Luis M. Pabon - http://luis.pabon.com">
    <param name="source" value="@text/messages7.txt">
    <param name="bgimage">
    <param name="bgfixed" value="1">
    <param name="fgcolor" value="000000">
    <param name="fgimage">
    <param name="fgrepeat" value="0">
    <param name="left" value="12">
    <param name="right" value="12">
    <param name="fontsize" value="16">
    <param name="fontstyle">
    <param name="linesp" value="20">
    <param name="scrollmode" value="3">
    <param name="scrollstep" value="2">
    <param name="scrcolor" value="660000">
    <param name="align" value="justify">
    </applet>
    </p>
    </div><div id="lyr8">

    <p>
    <applet NAME="applet1" ARCHIVE="vText.jar" CODE="vText.class" WIDTH="215" HEIGHT="205" HSPACE="0" VSPACE="0" style="border: 1px groove rgb(128,0,0)">
    <param name="copyright" value="Copyright (c) 2000 Luis M. Pabon - http://luis.pabon.com">
    <param name="source" value="@text/messages8.txt">
    <param name="bgimage">
    <param name="bgfixed" value="1">
    <param name="fgcolor" value="000000">
    <param name="fgimage">
    <param name="fgrepeat" value="0">
    <param name="left" value="12">
    <param name="right" value="12">
    <param name="fontsize" value="16">
    <param name="fontstyle">
    <param name="linesp" value="20">
    <param name="scrollmode" value="3">
    <param name="scrollstep" value="2">
    <param name="scrcolor" value="660000">
    <param name="align" value="justify">
    </applet>
    </p>
    </div><div id="lyr9">

    <p>
    <applet NAME="applet1" ARCHIVE="vText.jar" CODE="vText.class" WIDTH="215" HEIGHT="205" HSPACE="0" VSPACE="0" style="border: 1px groove rgb(128,0,0)">
    <param name="copyright" value="Copyright (c) 2000 Luis M. Pabon - http://luis.pabon.com">
    <param name="source" value="@text/messages9.txt">
    <param name="bgimage">
    <param name="bgfixed" value="1">
    <param name="fgcolor" value="000000">
    <param name="fgimage">
    <param name="fgrepeat" value="0">
    <param name="left" value="12">
    <param name="right" value="12">
    <param name="fontsize" value="16">
    <param name="fontstyle">
    <param name="linesp" value="20">
    <param name="scrollmode" value="3">
    <param name="scrollstep" value="2">
    <param name="scrcolor" value="660000">
    <param name="align" value="justify">
    </applet>
    </p>
    </div><div id="lyr10">

    <p>
    <applet NAME="applet1" ARCHIVE="vText.jar" CODE="vText.class" WIDTH="215" HEIGHT="205" HSPACE="0" VSPACE="0" style="border: 1px groove rgb(128,0,0)">
    <param name="copyright" value="Copyright (c) 2000 Luis M. Pabon - http://luis.pabon.com">
    <param name="source" value="@text/messages10.txt">
    <param name="bgimage">
    <param name="bgfixed" value="1">
    <param name="fgcolor" value="000000">
    <param name="fgimage">
    <param name="fgrepeat" value="0">
    <param name="left" value="12">
    <param name="right" value="12">
    <param name="fontsize" value="16">
    <param name="fontstyle">
    <param name="linesp" value="20">
    <param name="scrollmode" value="3">
    <param name="scrollstep" value="2">
    <param name="scrcolor" value="660000">
    <param name="align" value="justify">
    </applet>
    </p>
    </div>
    </body>
    </html>



    Thank you so much in advance...I don't much hair left to pull out
    Mary Williams
    Last edited by tampico; 07-16-2003 at 10:10 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •