cursor property error ?

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
Vanja
Posts: 19
Joined: Sat 8. Nov 2003, 14:00

cursor property error ?

Post by Vanja »

What is this error and why it's displayed in left corner of browser page...?

Error: Could not get the cursor property. Invalid argument.

Does anyone have a clue...?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: cursor property error ?

Post by DeXXus »

Vanja wrote:What is this error and why it's displayed in left corner of browser page...?

Error: Could not get the cursor property. Invalid argument.

Does anyone have a clue...?
What browser version are you using, please??
Vanja
Posts: 19
Joined: Sat 8. Nov 2003, 14:00

cursor property error ?

Post by Vanja »

IE 5.0 currently...since i had to uninstall the latest version for some different kinds of problems with SSL and stuff ;( Microsoft rulez...grrr...
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: cursor property error ?

Post by DeXXus »

Vanja wrote:IE 5.0 currently...since i had to uninstall the latest version for some different kinds of problems with SSL and stuff ;( Microsoft rulez...grrr...
It seems that IE 4.0 and 5.0 can have a problem with cursor type specification. In instances, where the "pointer" type is used... substituting "hand" type can solve problem. phpWCMS uses this in one instance. In file "/include/inc_front/front_func_inc.php" as shown below:

Code: Select all

if($nav_table_struct["js_over_effects"]) {
				$js		 = " onClick="location.href='".$link."';"";
				$js_act	 = " onMouseOver="this.style.cursor='pointer';"".$js;
				$js		.= " onMouseOver="this.bgColor='".$nav_table_struct["row_over_bgcolor"]."';this.style.cursor='pointer';".$link_image_id.".src='".$nav_table_struct["linkimage_over"]."';"";
				$js		.= " onMouseOut="this.bgColor='".$nav_table_struct["row_norm_bgcolor"]."';".$link_image_id.".src='".$nav_table_struct["linkimage_norm"]."';"";
			}
try changing to this:

Code: Select all

if($nav_table_struct["js_over_effects"]) {
				$js		 = " onClick="location.href='".$link."';"";
				$js_act	 = " onMouseOver="this.style.cursor='hand';"".$js;
				$js		.= " onMouseOver="this.bgColor='".$nav_table_struct["row_over_bgcolor"]."';this.style.cursor='hand';".$link_image_id.".src='".$nav_table_struct["linkimage_over"]."';"";
				$js		.= " onMouseOut="this.bgColor='".$nav_table_struct["row_norm_bgcolor"]."';".$link_image_id.".src='".$nav_table_struct["linkimage_norm"]."';"";
			}
If this doesn't help, I would "guess" that it may be happening while you are using htmlarea editor, as it may be sensitive to this, also. Let us know if this rids the error, please!
Vanja
Posts: 19
Joined: Sat 8. Nov 2003, 14:00

Post by Vanja »

I've tried to paste the code u've provided...and it works well now without any errors....
Thanks...
Locked