Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 03-20-2008, 07:01 PM LogicWeb MooTools
Average Talker

Posts: 17
Trades: 0
http://demos.mootools.net/Tips

I cannot get this to work at all. Example, hover over the info icon in the APF row. No bubble.png background pops up, text shows up as one line instead of two.

I have set the following with the proper path for sure

css

Code:
.tool-tip {
    color: #fff;
    width: 139px;
    z-index: 13000;
}
 
.tool-title {
    font-weight: bold;
    font-size: 11px;
    margin: 0;
    color: #9FD4FF;
    padding: 8px 8px 4px;
    background: url(../images/bubble.png) top left;
}
 
.tool-text {
    font-size: 11px;
    padding: 4px 8px 8px;
    background: url(../images/bubble.png) bottom right;
}
 
.custom-tip {
    color: #000;
    width: 130px;
    z-index: 13000;
}
 
.custom-title {
    font-weight: bold;
    font-size: 11px;
    margin: 0;
    color: #3E4F14;
    padding: 8px 8px 4px;
    background: #C3DF7D;
    border-bottom: 1px solid #B5CF74;
}
 
.custom-text {
    font-size: 11px;
    padding: 4px 8px 8px;
    background: #CFDFA7;
}
HTML Code:
            <td style="width: 100px; height: 24px;" class="style8">
            <img alt="Info" src="../images/report.gif" class="Tips1" title="Tips Title :: This is my tip content" style="border:0px" /></a></td>
The js I'm using is 100% copied/pasted from the demo page I mentioned

Code:
/* Tips 1 */
var Tips1 = new Tips($$('.Tips1'));
 
/* Tips 2 */
var Tips2 = new Tips($$('.Tips2'), {
    initialize:function(){
        this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
    },
    onShow: function(toolTip) {
        this.fx.start(1);
    },
    onHide: function(toolTip) {
        this.fx.start(0);
    }
});
 
/* Tips 3 */
var Tips3 = new Tips($$('.Tips3'), {
    showDelay: 400,
    hideDelay: 400,
    fixed: true
});
 
/* Tips 4 */
var Tips4 = new Tips($$('.Tips4'), {
    className: 'custom'
});
This is for LogicWeb

http://www.logicweb.com/services/security.php (this page mainly at this time)

HTML Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>LogicWeb, a smart web solution</title>
<meta name="author" content="LogicWeb" />
<meta name="description" content="LogicWeb, provider of affordable website hosting since 2004." />
<meta name="keywords" content="web hosting, hosting, shared hosting, reseller hosting, cheap domains, multiple domains, affordable web hosting, support, savvis datacenter, LogicWeb, cenixhost, webhost, web host, inexpensive, cheap, australia, bundle multi-accounts, united states, webhosting from savvis, website hosting, reliable, affordable, solutions, services, quality, superior uptime, designers, developers, web agencies, hosting plans, large bandwidth" />
 
<style type="text/css">
<!--
@import url("../styles/site.css");
@import url("../styles/2ndlevel.css");
@import url("../styles/tips.css");
@import url("../styles/style.css");
#menuItemServices { background-image:url(../images/navigation/on_services.gif); }
-->
</style>
<style type="text/css">
.hiddenPic {display:none;}
</style>
<script src="/scripts/tips.js" type="text/javascript"></script>
<script src="/scripts/mootools.js" type="text/javascript"></script>
</head>
As suggested in mootools forum, I did the following in the tips.js file

Code:
/* Tips 1 */
window.addEvent('domready', function() {
  var Tips1 = new Tips($$('.Tips1'));
});

Firebug shows this error now

Quote:
window.addEvent is not a function http://www.logicweb.com/scripts/tips.js Line 2
Apparently I did not set up tips.js correctly.

Any help on this appreciated.

Not sure what else is left to do and why it still does not work. Thanks again. I read the docs, but to be honest its another "language" to me

If anyone could please explain this I would appreciate it. I merely just want Tips to work exactly as it does in the demo, the first option (no delay, instant popup on hover).

I even reversed the script loading in security.php so that mootools.js loads first. Now firebug shows the following error
Quote:
C has no properties
inject(null, undefined)mootools.js (line 64)
initialize([], Object)mootools.js (line 133)
Class()mootools.js (line 16)
[Break on this error] break;}default:C.appendChild(this);}return this;},injectBefore:function(A){retur...
However, I never modified mootools.js at all, just uploaded as is.

Please understand I am not a programmer or web developer by trade. Linux is my specialty, not web design. But I'm willing to learn and listen with your help.

Thanks in advance.
__________________

Please login or register to view this content. Registration is FREE
[ Over 100 Fulfilled Prophecies in the Bible:
Please login or register to view this content. Registration is FREE
]
.................................................. ...................................

Please login or register to view this content. Registration is FREE
[ hosting for personal and business since 2003 ]

Last edited by LogicWeb; 03-20-2008 at 07:02 PM..
LogicWeb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-20-2008, 08:03 PM Re: LogicWeb MooTools
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
Try changing the class in your HTML from "Tips1" to "Tips2" or a different number.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 03-20-2008, 08:08 PM Re: LogicWeb MooTools
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
Actually, the tips worked for me (mostly) in Firefox. The info column for the APF row showed a tooltip. However, it was a little bit deformed. I didn't get any errors for Firebug, either, so you must have fixed it.

Last edited by VirtuosiMedia; 03-20-2008 at 08:10 PM..
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Reply     « Reply to LogicWeb MooTools
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15260 seconds with 12 queries