dhtml

  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Hello,
I have permission to use this code, i actually forgot i had it lol i was following a mouse controlled clock, pretty neat, yea i got it to work !
I would dearly love this script, i have had permission from the creator to use it, some time ago.
Its dhtml, something i never tried before, its a code for images but i can't get this to work, all i can get is red *X*in the boxes, i know from experience your images must be in the same folder as the page i.e index.htm, which they are!
should the code in the notepad be in index.htm as well cus its not, its in notepad lolol yea i don't normally do web pages...but i want to try...i was told the images and music are not allowed to be used, so no images in the code i have provided, and the music does'nt work either..mine!
The code:
Code: [ Select ]
<meta http-equiv="imagetoolbar" content="no">
<HTML>


            <!-- ZoneLabs Privacy Insertion -->
            <script language='javascript'

src='http://127.0.0.1:1029/js.cgi?pcaw&r=19711'></script>

<BODY bgcolor=#000000 scroll=no onload=zyva()>
<STYLE>
BODY {
cursor:url("../CRCROSS.cur");
}
img {position:absolute;left:-10000;border:#000000 solid 10px}
</STYLE>
<DIV id=load

style="font-family:courier;font-size:11pt;color:#FFFFFF">Loadin

g... Please wait...</DIV>
<div id=IMG>
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
<img src="../images/.jpg">
</div>
<BGSOUND src="../sound/braveheart.mid" loop=infinite>


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

function SymError()
{
 return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
 return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script>
// ------------------------------------------------------------
// script: Gerard Ferrandez - November 19th, 1999 - merci MP!
// news://news.leibowitz.org/nzn.fr.html
// http://www.dhteumeuleu.com
//-------------------------------------------------------------
window.onerror = new Function("return true")
screen.bufferDepth = 16
object = new Array()
W0 = 0
H0 = 0
am = 40
DV = 0
nx = 0
ny = 0
iB = 0

function CObj(N,img){
    this.N  = N
    this.A  = Math.round(Math.random()*10)+1
    this.B  = Math.round(Math.random()*10)+3
    this.k  = 0.1 * N
    this.L  = 0
    this.T  = 0
    this.W  = W0
    this.H  = H0
    this.xb = 0
    this.img = img.style
    img.style.filter = "alpha(opacity=80)"
    this.mainloop = function () {
        with (this) {
            k += 0.001
            L = ((nx-W) * .5) + (Math.cos(k * A) *

.5) * (nx - W)
            T = ((ny-H) * .5) + (Math.cos(k * B) *

.5) * (ny - H)
            with(img){
                width = Math.floor(W)
                height = Math.floor(H)
                top  = Math.floor(T)
                left  = Math.floor(L)
            }
            if(Math.random()>0.995 && DV == 0 && iB

!= this){
                DV = 1
                img.filter = ""
                this.zoomIn()
                img.zIndex = -1
                if(iB !=0) iB.zoomOut()
                iB = this
            }
        }
    }
    this.zoomIn = function() {
        with (this) {
            W += (nx - W) / am
            H += (ny - H) / am
            if(W >= nx - 1) DV = 0;
            else setTimeout("object[" + N +

"].zoomIn()",16)
        }
    }
    this.zoomOut = function() {
        with (this) {
            W -= W / (am * .5)
            H -= H / (am * .5)
            if(W >= 20) setTimeout("object[" + N +

"].zoomOut()",16);
            else {
                img.zIndex = 1
                zoomStart()
                img.filter="alpha(opacity=80)"
            }
        }
    }
    this.zoomStart = function() {
        with (this) {
            W++
            H += H0 / W0
            if(W<W0 || H<H0)setTimeout("object[" +

N + "].zoomStart()",16)
        }
    }
    setInterval("object[" + N + "].mainloop()",16)
}

window.onresize = function resize() {
    nx = document.body.clientWidth - 20
    ny = document.body.clientHeight - 20
}

function zyva() {
    resize()
    W0 = nx / 5
    H0 = ny / 5
    nbI = IMG.children.length
    for(i=0;i<nbI;i++) object[i] = new

CObj(i,IMG.children[i])
    load.style.visibility="hidden"
}

</script>
</BODY>
</HTML>

<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
 window.open = SymWinOpen;
 if(SymRealOnUnload != null)
   SymRealOnUnload();
}

function SymOnLoad()
{
 if(SymRealOnLoad != null)
   SymRealOnLoad();
 window.open = SymRealWinOpen;
 SymRealOnUnload = window.onunload;
 window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>


<!-- ZoneLabs Popup Blocking Insertion -->
<script language='javascript'>postamble();</script>
  1. <meta http-equiv="imagetoolbar" content="no">
  2. <HTML>
  3.             <!-- ZoneLabs Privacy Insertion -->
  4.             <script language='javascript'
  5. src='http://127.0.0.1:1029/js.cgi?pcaw&r=19711'></script>
  6. <BODY bgcolor=#000000 scroll=no onload=zyva()>
  7. <STYLE>
  8. BODY {
  9. cursor:url("../CRCROSS.cur");
  10. }
  11. img {position:absolute;left:-10000;border:#000000 solid 10px}
  12. </STYLE>
  13. <DIV id=load
  14. style="font-family:courier;font-size:11pt;color:#FFFFFF">Loadin
  15. g... Please wait...</DIV>
  16. <div id=IMG>
  17. <img src="../images/.jpg">
  18. <img src="../images/.jpg">
  19. <img src="../images/.jpg">
  20. <img src="../images/.jpg">
  21. <img src="../images/.jpg">
  22. <img src="../images/.jpg">
  23. </div>
  24. <BGSOUND src="../sound/braveheart.mid" loop=infinite>
  25. <script language="JavaScript">
  26. <!--
  27. function SymError()
  28. {
  29.  return true;
  30. }
  31. window.onerror = SymError;
  32. var SymRealWinOpen = window.open;
  33. function SymWinOpen(url, name, attributes)
  34. {
  35.  return (new Object());
  36. }
  37. window.open = SymWinOpen;
  38. //-->
  39. </script>
  40. <script>
  41. // ------------------------------------------------------------
  42. // script: Gerard Ferrandez - November 19th, 1999 - merci MP!
  43. // news://news.leibowitz.org/nzn.fr.html
  44. // http://www.dhteumeuleu.com
  45. //-------------------------------------------------------------
  46. window.onerror = new Function("return true")
  47. screen.bufferDepth = 16
  48. object = new Array()
  49. W0 = 0
  50. H0 = 0
  51. am = 40
  52. DV = 0
  53. nx = 0
  54. ny = 0
  55. iB = 0
  56. function CObj(N,img){
  57.     this.N  = N
  58.     this.A  = Math.round(Math.random()*10)+1
  59.     this.B  = Math.round(Math.random()*10)+3
  60.     this.k  = 0.1 * N
  61.     this.L  = 0
  62.     this.T  = 0
  63.     this.W  = W0
  64.     this.H  = H0
  65.     this.xb = 0
  66.     this.img = img.style
  67.     img.style.filter = "alpha(opacity=80)"
  68.     this.mainloop = function () {
  69.         with (this) {
  70.             k += 0.001
  71.             L = ((nx-W) * .5) + (Math.cos(k * A) *
  72. .5) * (nx - W)
  73.             T = ((ny-H) * .5) + (Math.cos(k * B) *
  74. .5) * (ny - H)
  75.             with(img){
  76.                 width = Math.floor(W)
  77.                 height = Math.floor(H)
  78.                 top  = Math.floor(T)
  79.                 left  = Math.floor(L)
  80.             }
  81.             if(Math.random()>0.995 && DV == 0 && iB
  82. != this){
  83.                 DV = 1
  84.                 img.filter = ""
  85.                 this.zoomIn()
  86.                 img.zIndex = -1
  87.                 if(iB !=0) iB.zoomOut()
  88.                 iB = this
  89.             }
  90.         }
  91.     }
  92.     this.zoomIn = function() {
  93.         with (this) {
  94.             W += (nx - W) / am
  95.             H += (ny - H) / am
  96.             if(W >= nx - 1) DV = 0;
  97.             else setTimeout("object[" + N +
  98. "].zoomIn()",16)
  99.         }
  100.     }
  101.     this.zoomOut = function() {
  102.         with (this) {
  103.             W -= W / (am * .5)
  104.             H -= H / (am * .5)
  105.             if(W >= 20) setTimeout("object[" + N +
  106. "].zoomOut()",16);
  107.             else {
  108.                 img.zIndex = 1
  109.                 zoomStart()
  110.                 img.filter="alpha(opacity=80)"
  111.             }
  112.         }
  113.     }
  114.     this.zoomStart = function() {
  115.         with (this) {
  116.             W++
  117.             H += H0 / W0
  118.             if(W<W0 || H<H0)setTimeout("object[" +
  119. N + "].zoomStart()",16)
  120.         }
  121.     }
  122.     setInterval("object[" + N + "].mainloop()",16)
  123. }
  124. window.onresize = function resize() {
  125.     nx = document.body.clientWidth - 20
  126.     ny = document.body.clientHeight - 20
  127. }
  128. function zyva() {
  129.     resize()
  130.     W0 = nx / 5
  131.     H0 = ny / 5
  132.     nbI = IMG.children.length
  133.     for(i=0;i<nbI;i++) object[i] = new
  134. CObj(i,IMG.children[i])
  135.     load.style.visibility="hidden"
  136. }
  137. </script>
  138. </BODY>
  139. </HTML>
  140. <script language="JavaScript">
  141. <!--
  142. var SymRealOnLoad;
  143. var SymRealOnUnload;
  144. function SymOnUnload()
  145. {
  146.  window.open = SymWinOpen;
  147.  if(SymRealOnUnload != null)
  148.    SymRealOnUnload();
  149. }
  150. function SymOnLoad()
  151. {
  152.  if(SymRealOnLoad != null)
  153.    SymRealOnLoad();
  154.  window.open = SymRealWinOpen;
  155.  SymRealOnUnload = window.onunload;
  156.  window.onunload = SymOnUnload;
  157. }
  158. SymRealOnLoad = window.onload;
  159. window.onload = SymOnLoad;
  160. //-->
  161. </script>
  162. <!-- ZoneLabs Popup Blocking Insertion -->
  163. <script language='javascript'>postamble();</script>

Thanks suzie...where has those visit ozzues come from lolol they should'nt be in that code.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

suzie -- you have to use the BBCode buttons when posting HTML code -- otherwise it screws up the post. I fixed this one for you.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Sorry atno, and thanks...atno where is bb code, sorry i never used it before!
I think i need to learn this way of posting atno.
suzie.
:)
I see that code is in a box, how to get it in the box :(
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

When you make a post or reply, just look for the button that says code.

Click it once before you paste in your code, then click it again afterward to close it.


Why don't you play with it a bit in the test forum until you get used to it. That's what the test forum is there for.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

atno, many thanks,
I have tested in a post what nucleo was in, i clicked code button (could'nt see anything else) it was the right button lol although i tested out the php first but that did'nt look like yours!
Thought test forum was only for sigs atno...but i will look in there.
Thanks again
suzie.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 57 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.