Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 900 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
javascript: need help badly #163157
10/24/07 22:35
10/24/07 22:35
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
I have to find a code for a banner effect in js, like this

a marquee -like effect.
I don't know any js.
I found something in the net but , while it works if is the only code in the page, when I put the code in the complex page, plenty of html ,it messed up all things, no matter when I place it ( in the head , in the body..) , the links disappeared.. a mess.

I need a working code for the banner: many of you are real programmers, help me with some tips.

Re: javascript: need help badly [Re: Mondivirtuali] #163158
10/24/07 23:18
10/24/07 23:18
Joined: Nov 2003
Posts: 698
England, UK
A
Aaron_H Offline
User
Aaron_H  Offline
User
A

Joined: Nov 2003
Posts: 698
England, UK
I'm no good with javascript so I can't help with code. But couldn't you actually use a html marquee (although they seem to annoy most people).. and put the image in that?

I can't offhand remember if it's depreciated or not though but:

<marquee behavior="alternate" width="100%" height="100px"><img src="image.jpg" /></marquee>

That should bounce back and forth too..

EDIT: I forgot to mention that you must be aware that it won't render in all browers. But does work with Firefox and IE. So you're safe with those two.. Though I'm not sure the web standards guys will be too happy.

Last edited by Aaron_H; 10/24/07 23:24.
Re: javascript: need help badly [Re: Aaron_H] #163159
10/24/07 23:24
10/24/07 23:24
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
The first thing that I tryed..the page does not accept this tag ( that is illegal or something , I found) so I tryed with JS only for stuck myself for a whole day

Re: javascript: need help badly [Re: Mondivirtuali] #163160
10/24/07 23:25
10/24/07 23:25
Joined: Nov 2003
Posts: 698
England, UK
A
Aaron_H Offline
User
Aaron_H  Offline
User
A

Joined: Nov 2003
Posts: 698
England, UK
Funny, it just worked with me. Where does it say it's illegal? Did you try editing the webpage with notepad or are you using some other sort of editor?

Re: javascript: need help badly [Re: Aaron_H] #163161
10/24/07 23:32
10/24/07 23:32
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
Using both NVU and Frontpage and the file manager of the website..it does not work.

Re: javascript: need help badly [Re: Mondivirtuali] #163162
10/24/07 23:36
10/24/07 23:36
Joined: Nov 2003
Posts: 698
England, UK
A
Aaron_H Offline
User
Aaron_H  Offline
User
A

Joined: Nov 2003
Posts: 698
England, UK
Using those kind of editors probably won't let you add that code, since the marquee command was originally microsoft only, they don't recognise it. Maybe you should try getting the html file, editing it in notepad and then reuploading it..

Re: javascript: need help badly [Re: Aaron_H] #163163
10/24/07 23:59
10/24/07 23:59
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
here is the code
Code:
  <div style="z-index: 2; left: 0pt; width: 116px; position: absolute; top: -1px; height: 100px; ;" id="bannerc"> 
<div class="menuBar" style="position: absolute; top: 550; width: 123; height: 100; left: 300">

<marquee>
<table><tr><td><a href="http://www.etica.net/2007/news2007.htm"><img src="bannerc.gif" width="450" height="103"></a></td></table>
</marquee></div>



For some strange reason , it make the other images , disappear.


Re: javascript: need help badly [Re: Mondivirtuali] #163164
10/25/07 00:03
10/25/07 00:03
Joined: Nov 2003
Posts: 698
England, UK
A
Aaron_H Offline
User
Aaron_H  Offline
User
A

Joined: Nov 2003
Posts: 698
England, UK
Code:

<div style="z-index: 2; left: 0pt; width: 116px; position: absolute; top: -1px; height: 100px; ;" id="bannerc">
<div class="menuBar" style="position: absolute; top: 550; width: 123; height: 100; left: 300">

<marquee>
<table><tr><td><a href="http://www.etica.net/2007/news2007.htm"><img src="bannerc.gif" width="450" height="103" /></a></td></tr></table>
</marquee>

</div>
</div>



Try that, there were a lot of unclosed tags.

Re: javascript: need help badly [Re: Aaron_H] #163165
10/25/07 00:24
10/25/07 00:24
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
The page does not see the css , now. How can a simple marquee make the css invisible?

This stupid thing is driving me crazy

Re: javascript: need help badly [Re: Mondivirtuali] #163166
10/25/07 00:52
10/25/07 00:52
Joined: Nov 2003
Posts: 698
England, UK
A
Aaron_H Offline
User
Aaron_H  Offline
User
A

Joined: Nov 2003
Posts: 698
England, UK
For a start you're including inline styles as well as references to the stylesheet (with id and class in the div tags), maybe that has something to do with it.. I think it would be best to either stick to one or the other in order to avoid confusion.

Also are you sure that in the first div tag; that 'id="bannerc"' should be an id and not a class (I couldn't tell you without looking at your CSS code.)

Also make sure that you have actually included the stylesheet!
You may have forgotten to link it to the HTML page.


Sorry if I'm not really helping. I'm just throwing a few ideas at you so you can look through the code to see what may be wrong without having to post the whole thing online.

I'm off for the evening now anyway.
If you're still having problems just email me and I'll take a look ASAP. (cobra_kai[at]ntlworld.com)

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1