473,383 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Need help modifying a great script

Haitashi
I found this awesome help bubble script. I haven't been able to do one thing. What instantiates the bubble is an icon. I need to use both an icon and text. For instance I want to have a small letter image next to the word "Email" and of you click on any of them you get the bubble.

Any help will be greatly appreciated!!!

Here's how you call it:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.                         hb1 = new HelpBalloon({
  3.                             icon: '/images/profile_images/mail.gif',
  4.                             title: '#Variables.oStudent.username#@THISDOMAIN.com',
  5.                             altText: 'E-mail',
  6.                             content: ' '
  7.                         });
  8.                     </script>
Oct 5 '07 #1
11 1365
You may download the code HERE .
Oct 5 '07 #2
pbmods
5,821 Expert 4TB
Those balloons don't work properly in Safari, incidentally. They appear and disappear rapidly when clicking on the icon.

Referenced from this page:
http://www.beauscott.com/examples/help_balloons/

No JS errors that I can see.
Oct 6 '07 #3
acoder
16,027 Expert Mod 8TB
Moved from Articles section. Please do not post questions in the Articles section.
Oct 6 '07 #4
It seems to work fine on my copy of Safari.

I just can't find a way to modify it in order to use text links instead of just images to call the bubble.
Oct 7 '07 #5
pbmods
5,821 Expert 4TB
Heya, Haitashi.

I've got Safari 3.0.3 on an Intel Mac.

Let me know what version and platform you're running so I can submit a bug report to Apple.
Oct 7 '07 #6
Win XP with Safari 3.0.3

Also, if you see the examples. I'm only using the example called "Non-AJAX Balloon" and it works fine. Maybe the other examples don't work correctly.

Nobody knows how to achieve what I'm looking for? :(
Oct 8 '07 #7
gits
5,390 Expert Mod 4TB
hi ...

should the text look like a link or just simple text? the idea is to extend the HelpBallons-Class so that we may put in an additional text that is displayed right behind the info-icon. we create a node from it and attach the same event-handler to it as the icon gets attached ...

kind regards
Oct 8 '07 #8
Heya ^_^

It doesn't necessarily have to look like a link because it's going to be located in a place where the users will know it's a "clickable" item. If it's easier to use what looks like simple text, even better.

What you say makes sense. Only thing is that I'm a Javascript noob so I don't know how to code what you just said.
Oct 8 '07 #9
I saw how to do this! ^_^

All you have to do is call it like this:

[HTML]<script type="text/javascript">
var hb1 = new HelpBalloon({
title: 'Non-Ajax Balloon',
content: 'This is where we can display the profile content.'
});
</script>
<a href="##" onclick="hb1.show();>Some text</a>[/HTML]
Oct 9 '07 #10
If you know any php, you could use the GD library and a wee bit of php to create an image dynamically? or even just create an image of text in photoshop or whatever?! or if you want to learn do what he said ^ up there!
Oct 9 '07 #11
acoder
16,027 Expert Mod 8TB
Please use code tags when posting code:

[CODE=javascript]
JavaScript code goes here.
[/code]
Oct 9 '07 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: pancho | last post by:
Greetings, I need help configuring/building PHP3 with MySQL as a DSO on a Solaris 8 box - this module is needed to host some existing sites I will be migrating Note. I built PHP4 from source and...
2
by: yvan | last post by:
I was wondering if someone here could help me with modifying this PHP template so that it does something very specific for me. My knowledge of PHP is very limited (I'm more of a Cold Fusion...
4
by: VA | last post by:
I am using a JS library of functions that I include in my web page using the usual <script type="text/javascript" src=...> method Is there a way to automatically call one of my own functions...
2
by: chuck | last post by:
Hi, I am modifying some code from here http://www.quirksmode.org/dom/domform.html I have a div 'readroot' that I clone. I change the change the id and name of the childnodes of 'readroot' to...
5
by: soup_nazi | last post by:
I want to remove duplicate entries within a text file. So if I had this within a text file... Applications/Diabetic Registry/ Applications/Diabetic Registry/ Applications/Diabetic Registry/...
2
by: P2P | last post by:
Hi I am wondering if someone can help me here with the "perfect" marquee vertical scrolling script I've found. This marquee is great for me as it will call an external html page. This allow...
11
by: GaryB | last post by:
Hi Guys, I've been battling with this one for hours - I hope that you can help me! My code modifies the <aon a page, from a standard document link into a link with a tailored onclick event. ...
0
by: MikeRatzlaff | last post by:
Hi I am trying to change a value in my Metadata.xml file (the IIS configuration file). I'm trying to use XMLstarlet to do it, so if you can help me with that then great, but if you can show me...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.