Results 1 to 6 of 6

Thread: will marquee do?

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    will marquee do?

    hi,
    the following script is an example of a "simple collision-detection"
    the line 8(..tar1.style.posLeft+=5) is for moving the object1 to the left...Is it possible to use
    <marquee behavior=alternate>object1</marquee> within the function ?
    I was just thinking of using ten or more "marquees" of different speed
    as "bullets" to shoot targets(tar2)



    <script>
    document.bgColor="pink";
    var a =setInterval('start()',100)
    function start()
    {
    tar1=document.all.im1;
    tar2=document.all.im2;
    tar1.style.posLeft+=5;
    if((tar1.style.posLeft <= tar2.style.posLeft+tar2.style.posWidth && tar1.style.posLeft >= tar2.style.posLeft)
    &&(tar1.style.posTop<=tar2.style.posTop+tar2.style.posHeight && tar1.style.posTop >= tar2.style.posTop))
    {

    tar2.style.visibility="hidden";
    document.all.ses.src='daha.wav'
    clearInterval(a)
    }
    }
    </script>
    <bgsound src="#" id=ses loop=1 autostart="false">
    <img src="kap.gif" name=im1 style="position:absolute;top:100;left:100;"><br><br>
    <img src="kizss.gif" name=im2 style="position:absolute;top:100;left:300;"><br><br>
    Attached Files Attached Files

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Marquees are non-standard stupid tags, never ever use them.
    Besides, they wouldn't work as you can't get the current location of the text from them.
    Have I helped you? Please Rate my posts.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: will marquee do?

    Originally posted by merhaba

    I was just thinking of using ten or more "marquees" of different speed
    Are you trying to kill your visitors?

    What exactly do you want to achieve?

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    This is what I've gathered, he's thought of having different speed marquees, each representing a bullet. He then has a target and some kind of collision detection system. Not sure why, but maybe it could actually be used to demostrate something. Either way, marquees will not do.
    Have I helped you? Please Rate my posts.

  5. #5
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    flash is the way to go

  6. #6
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    very true. and now that I've realised flash can read external files, it could even be made for easy editing, so you wouldn't even have to know or even have flash to edit the speeds of the bullets.
    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width