Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,038 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: javascript: need help badly [Re: Aaron_H] #163167
10/25/07 01:20
10/25/07 01:20
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
Thanks..I have to update a site made by other people
an heavy restyling , with short time and alone ..
The images are fixed : was the server that don't saw the link if they include the name of their own directory..a strange behavior.
It is the server, I guess.

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

Joined: Nov 2003
Posts: 698
England, UK
Ahh okay, well at least you managed to get it sorted.

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

Joined: Oct 2005
Posts: 528
Italy
Nope the damn thing is so messed up that I cannot modify it , even using a marquee tag.

Re: javascript: need help badly [Re: Mondivirtuali] #163170
10/25/07 15:20
10/25/07 15:20
Joined: Aug 2003
Posts: 511
Hilden in Germany
RobH Offline
User
RobH  Offline
User

Joined: Aug 2003
Posts: 511
Hilden in Germany
Maybe this can help you? It is JS and must be modified a bit like you want it, but it can be a start:

<script language="javascript">
var mybox;
var myboxstyle;
var schiebx = 1;
var schieby = 1;
var timerid;
var buehnex;
var buehney;
var grenzex;
var grenzey;


function initer() {
mybox = document.getElementById("mobilbox");
myboxstyle = mybox.style;
var BrowserName = navigator.appName;
var BrowserVersion = navigator.appVersion;
//fenster innen maße
if(BrowserName == "Microsoft Internet Explorer") {
buehnex = document.documentElement.clientWidth;
buehney = document.documentElement.clientHeight;
//alert("IE: " + buehnex + " / " + buehney);
}
else {
buehnex = window.innerWidth;
buehney = window.innerHeight;
//alert("FF: " + buehnex + " / " + buehney);
}
//grenzwerte
grenzex = buehnex - (parseInt(myboxstyle.width, 10)) - 3;
grenzey = buehney - (parseInt(myboxstyle.height, 10)) - 3;
}

function startbox() {
window.clearInterval(timerid);
timerid = window.setInterval("schieb()", 10);
//schieb();
}

function stoppbox() {
window.clearInterval(timerid);
}


function schieb() {
initer();
var posx = parseInt( myboxstyle.left, 10);
var posy = parseInt( myboxstyle.top, 10);
//alert("posx: " + posx);
var mynumber = Math.round(Math.random() * 16000000);
var myhex = mynumber.toString(16);



var collaenge = myhex.length;
var nullen = "";
//nullen erzeugen
for(a=collaenge; a<6; a++) {
nullen+="0";
}
myhex = nullen + myhex;



if(posx > grenzex || posx < 0) {
schiebx*=-1;
myboxstyle.background = "#" + myhex; //random(16000000);
}

if(posy > grenzey || posy < 0) {
schieby*=-1;
myboxstyle.background = "#" + myhex; //random(16000000);
}

posx+=schiebx;
posy+=schieby;

myboxstyle.left = String(posx) + "px";
myboxstyle.top = String(posy) + "px";

document.getElementById("parameter").value = posx + " / " + posy + " / " + myhex;


}


</script>

</head>

<body onLoad="initer()" >

<div name="mobilbox" id="mobilbox" style="position:absolute;width:100px;height:100px;left:100px;top:100px;background:#f0f000;border:solid blue 1px">MOBILBOX</div>

<input type="button" value="start" onClick="startbox()" >
<input type="button" value="stopp" onClick="stoppbox()" >
<input type="text" name="parameter" value="" id="parameter">

</body>
</html>

Re: javascript: need help badly [Re: RobH] #163171
10/25/07 21:03
10/25/07 21:03
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
Thanks! I'll try it.
For now I gave up and made an animated gif that replace the previous logo, giving the illusion of an animated banner.

Re: javascript: need help badly [Re: Mondivirtuali] #163172
10/27/07 21:17
10/27/07 21:17
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
At the end, I put a fake banner ..
"put the banner under the image"

So I did


Page 2 of 2 1 2

Gamestudio download | 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