1) xaxofonGroup: Members Posts: 2Joined: 10 Sep 2004Location: SKK/EUIP: 217.118.--.--
Posted:
hi angus & all guys being busy with these cools scripts,
I've got pretty desperated with my TIPSTER3.1 script, which works OK with all browsers (opera 7.23, mozilla1.7.2, firefox9) except for IE6.00.2800. The problem is positioning - in IE all stickyTips show up in the left top corner at [0,0] position. Here is site, I have set up with TIPSTER script & need to make it work:
Just to save some broadband, I divided tipster.js file into 2 files,one is tipster31.js file itself, second part for definition of stickyTips Array is included in file, path to which is included in <script language="javascript" src="script/kovo_path_skdia.js"></script>
This is the 'script/kovo_path_skdia.js' content: <!-- -start-- var scriptPath="script/"; var contentScript="script/kovo_content_skdia.js"; var styleScript="script/kovo_style.js"; // --end-- -->
The definition of stickyArray is in the 'kovo_content_skdia.js' file.
Everything worx fine with all browsers, even IE loads up the content of stickyTips, the only problem is the positioning at [0,0] in IE. Does anybody have any clue, why, please?
problematic positioning with Opera, Mozilla, FireFox: http://www.synet.sk/0-zone/kovomac/tipster_IE_OK/ieok.htm
here, all browsers work OK, originally IE6 didnt: http://www.synet.sk/0-zone/kovomac/tipster_allbutIE_OK/allbutIEok.htm (it works only here, I cannot make it run now, when I finished scripts:-(O)
I will appreciate any advice, how could I fix the thing. Thank you very much. Xaxofon xl42@pobox.sk
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 222.152.--.--
Posted:
Hmm, interesting! However, first I am going to have a little whinge, so bear with me :).
Have you read the the "Script License Agreement" list of conditions? I ask this because many people don't appear to, and I'm wondering if I need to make it more obvious. As it stands you are in violation of two conditions:
1) You have altered this notice in the source of the script:
/*
TIPSTER v3.1 RC (c) 2001-2004 Angus Turnbull, http://www.twinhelix.com Altering this notice or redistributing this file is prohibited.
*/
It clearly states that altering it is prohibited, yet you've removed the latter half. Please, put it back the way it is supposed to be.
2) I cannot see a link in that page to www.twinhelix.com anywhere. I realise that this is a site under development, but please remember that to use the script, you have to have a crediting link somewhere or perhaps consider making a donation if you want to support its development (in which case you can use it without a link if you choose!).
Anyway, with that over, onto the issue. The error that turns up in the Firefox and Opera JavaScript consoles is that one of the tip objects doesn't have a .track() method. This is due to a very interesting mistake in the menu script you're using, in its first line it has:
Object.prototype.copy=function()....
What this does is that it assigns a "copy" method to EVERY object created by ANY script in the page. This is confusing the Tipster script; it has an internal list of tip objects, and suddenly there is a "copy" variable that turns up out of nowhere and causes an error.
What you can do to fix this is insert this after the core scripts have been included:
delete TipObj.list.copy;
which will remove the extra parameter and seems to make it work.
Hope this helps, and feel free to recommend compatibility changes to the author of the menu script you're using (or just use my menu script :).
Good luck - Angus.
3) xaxofonGroup: Members Posts: 2Joined: 10 Sep 2004Location: SKK/EUIP: 217.23.--.--
Posted:
hi angus,
first of all, please accept my deep apology, I didn't mean to violate licence rules. I deleted the one row just to make file smaller while keeping URL to twinhelix, I thought this doesnt apply to the second row:-)) sorry, I have fixed it already.
second - you are AMAZING!!! You are THE REAL JAVASCRIPTS GENIUS! I cannot figure out, how did you get it, coz I have spent so many hours trying to fix it, combined scripts, browsers, etc etc... YES, now it works now in all four browsers !!! Thank you so much!
I wanted to sent you some contribution, even not big amount frankly, coz I am just beginning with web development and the site www.kovomac.sk is my the very first commercial project being made more for my reference purposes rather than for apropriate money - the thing is that PayPal does not have Slovakia (my country) in the list of countries. Thus, I have choosen at this time another option and have put a credit link at the bottom, beside the link to my own website. I hope, this is OK..?
Thank you very much angus once again, next week I am leaving to thailand for couple of months, but after I am back, I will continue with webdesign and definitely I will use your scripts and contribute of course as well.
Thank you for great job.
Xaxofon
4) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 222.152.--.--
Posted:
OK, thanks for fixing it up, and I'm glad it's fixed! Best of luck for future projects too...