Click to See Complete Forum and Search --> : java script error message


carmen
08-11-2003, 11:19 PM
Hi!
I am new to this forum. So Hi! everyone.

I am trying to use a java script on my site showing pop box with picture. The script I am using is Tigra Hints every thing works except this part of the script

onMouseOver="myHint.show(8)"

the box pops up showing error message, has any one used this script. and solved the problem.

script can be found on

http://javascript.internet.com/bgeffects/tigra-hints.html

any help is appreciated.

Australia

brendandonhue
08-11-2003, 11:21 PM
what error message is it showing?

carmen
08-11-2003, 11:58 PM
line 123
char 1
error 'my hint' is underfined
code 0
url file://C:\WINDOWS\TEMP\FrontPageTempDir\pvw7.htm

hope this helps

Charles
08-12-2003, 05:14 AM
Without seeing your code I'd have to say that you have typed my Hint.show(8) instead of myHint.show(8).

carmen
08-12-2003, 08:35 PM
thankyou for the reply
correct i meant to type in
'myHint' is underfined
as the error message sorry.
what could I have missed I have not changed the script in any way.

it's driving me nuts!

DaiWelsh
08-13-2003, 06:06 AM
At a guess you have not created hints.js and/or hints_cfg.js corectly or you have not included them correctly into the head of your document.

A url for the problem page would help us to help you.

Regards,

Dai

carmen
08-13-2003, 07:56 PM
Hi as I have not posted it to the net here is copy of code.
Thankyou for helping.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>



<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Original: support@softcomplex.com -->

<!-- Web Site: http://www.softcomplex.com -->

<style>

a, A:link, a:visited, a:active

{color: #0000aa; text-decoration: none; font-family: Tahoma, Verdana; font-size: 11px}

A:hover

{color: #ff0000; text-decoration: none; font-family: Tahoma, Verdana; font-size: 11px}

p, tr, td, ul, li

{color: #000000; font-family: Tahoma, Verdana; font-size: 11px}

.header1, h1

{color: #ffffff; background: #4682B4; font-weight: bold; font-family: Tahoma, Verdana; font-size: 13px; margin: 0px; padding: 2px;}

.header2, h2

{color: #000000; background: #DBEAF5; font-weight: bold; font-family: Tahoma, Verdana; font-size: 12px;}

.intd

{color: #000000; font-family: Tahoma, Verdana; font-size: 11px; padding-left: 15px; padding-right: 15px;}

.part

{background-image: url("img/corner.gif"); background-repeat: no-repeat; cursor: default;}



/* a class for all Tigra Hints boxes, TD object */

.hintsClass

{text-align: center; font-family: Verdana, Arial, Helvetica;}

/* this class is used by Tigra Hints wrappers */

.row

{background: white;}

</style>

<!-- Link Tigra Hints script file to your HTML document-->

<script language="JavaScript" src="hints.js"></script>

<!-- Link Tigra Hints configuration file to your HTML document-->

<script language="JavaScript" src="hints_cfg.js"></script>

</HEAD>

<body>

<table cellSpacing="0" cellPadding="0" align="center" bgColor="black" border="0">
<tbody>
<tr>
<td background="film.gif" height="14"><img height="14" src="pixel.gif" width="10"></td>
</tr>
<tr>
<td><img onmouseover="myHint.show(k001.jpg)" onmouseout="myHint.hide()" src="k001.jpg" width="100">&nbsp;
<img onmouseover="myHint.show(4)" onmouseout="myHint.hide()" src="k070.jpg" width="100">&nbsp;
<img onmouseover="myHint.show(5)" onmouseout="myHint.hide()" src="k020.jpg" width="100"></td>
</tr>
<tr>
<td background="film.gif" height="14"><img height="14" src="pixel.gif" width="1"></td>
</tr>
</tbody>
</table>

</body>

</html>

DaiWelsh
08-14-2003, 11:54 AM
Carmen,

Do you have files called hints.js and hints_cfg.js in the same directory as this page? If not then that is your problem.

The page on internet.com you point to is actually quite misleading as it give the impression that all you need to do is cut and paste the code into your page, but in fact you need (at least) two other files containing the javscript to make this work. I suggest you visit the originator of the code softcomplex.com and see if there is a clearer explanation there of how it all works and where to get the required files.

Not your fault, like I say it is badly presented at internet.com ;)

Dai