/    Sign up×
Community /Pin to ProfileBookmark

Problem with menu.php

Hey guys. I am looking for a bit of help here.

I have a website that i have been making and basically i got an error in Dreamweaver that said:

“There is a syntax error on line 14 of menu.php. Code hinting may not work until you fix this error.”

I open the menu.php file and went to Line 14 and this is what is has:

“widthFX[i].push(new Fx.Width(elm, {duration: , transition: }).set(0)); });”

If you want the actual file to check it out, please click [URL=”http://silentarts.110mb.com/index.htm”]here[/URL].

THANKS A MILL FOR ANY HELP THAT YOU CAN GIVE…

THANKS AGAIN…

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@PETTESep 29.2009 — Hey guys. I am looking for a bit of help here.

I have a website that i have been making and basically i got an error in Dreamweaver that said:

"There is a syntax error on line 14 of menu.php. Code hinting may not work until you fix this error."

I open the menu.php file and went to Line 14 and this is what is has:

"widthFX[i].push(new Fx.Width(elm, {duration: , transition: }).set(0)); });"



If you want the actual file to check it out, please click here.



THANKS A MILL FOR ANY HELP THAT YOU CAN GIVE...



THANKS AGAIN...
[/QUOTE]




That is not PHP. That's Javascript in a PHP file. It'll be best to post the all PHP file scripts. I doubt we'll be able to link to it since it'll be processed by the server.



If there is just this on line 14 then this is definately an error:



"widthFX[i].push(new Fx.Width(elm, {duration: , transition: }).set(0)); });"



I think this is suposed to be a variable or echo statement. For instanse,



$variable = "widthFX[i].push(new Fx.Width(elm, {duration: , transition: }).set(0)); });"



Or



echo "widthFX[i].push(new Fx.Width(elm, {duration: , transition: }).set(0)); });"
Copy linkTweet thisAlerts:
@silentartsauthorSep 30.2009 — Ok Pette... Thanks for your reply. What i cannot understand is what you want. You said "It'll be best to post the all PHP file scripts." What exactly do you want. Do you want the entire file? You can find that here:

// GK MooMenu v.2.0 Copyright by GavickPro window.addEvent("domready", function(){ // necessary classes Fx.Width = Fx.Style.extend({initialize: function(el, options){this.element = $(el);this.element.setStyle('overflow', 'hidden');this.iniWidth = this.element.getStyle('width').toInt();this.parent(this.element, 'width', options);},toggle: function(){var style = this.element.getStyle('width').toInt(); return (style > 0) ? this.start(style, 0) : this.start(0, this.iniWidth);},show: function(){return this.set(this.iniWidth);}}); var main = $("horiz-menu"); var levels = new Array(); var widthFX = new Array(); main.getChildren().each(function(el,i){ levels.push(new Array()); widthFX.push(new Array()); el.getElementsBySelector("ul").each(function(elm,j){ levels[i].push(elm.getParent()); [COLOR="Red"][SIZE="5"]widthFX[i].push(new Fx.Width(elm, {duration: , transition: }).set(0)); });[/SIZE][/COLOR] }); levels.each(function(e,k){ e.each(function(a,l){ a.addEvents({ "mouseenter" : function(){ a.getChildren()[1].setStyle("overflow","hidden"); widthFX[k][l].toggle(); (function(){a.getChildren()[1].setStyle("overflow","")}).delay(); }, "mouseleave" : function(){ a.getChildren()[1].setStyle("overflow","hidden"); widthFX[k][l].stop().set(0); } }); }); }); }); [/QUOTE]
Copy linkTweet thisAlerts:
@silentartsauthorSep 30.2009 — Also, if you want to see the file in original settings....go to:

http://silentarts.110mb.com/index.htm and right click link and click "Save Target As.."
Copy linkTweet thisAlerts:
@PETTEOct 04.2009 — This is JavaScript, I'm afraid. Not PHP. If the this script is enclosed in <? and ?>. Then this will definately produce a PHP error. Otherwise the file is being treated as a JavaScript file. Thus you should delete the PHP file and save it as a JavaScript file and call it in the <script></script> element. Or you could copy and past the javascript script inbetween the element.

______________________________________
CACIOCODE now blogging. www.caciocode.com
×

Success!

Help @silentarts spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...