Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl In HTML

Status
Not open for further replies.

Jungleroger

Technical User
Joined
Nov 28, 2006
Messages
3
Location
GB
Hi, I've been trying to edit this file (that i'm told is perl although it cam eform an html file) so it will work on my psp.

Its part of a network remote control for a winamp visulisation program.

I've tried connecting with my psp but it just gets freezes. i thought it might be because there's lots of images to load up..

so if someone knows of a way to get it to display on multiple pages i would be very greatfull.

Here's the code:

<BODY bgcolor="#000000" text="#FFFFFF" link="#00FF00" vlink="#009933" alink="#FFFF00" topmargin="0">
<font face="Arial, Helvetica, sans-serif" size="1">
### hide(set([y],[]))
### hide(for([x],[0],sub(getcount(),[1]),[if(equal([scene],getinf(x,[type])),[set([y],strcat(y,[<a href="cmd.html?cmd=scene&sc=],x,[" target="CMD"><img src="scene/],getinf(x,[file]),[.jpg" width=],getinfo([network/thumbx]),[ height=],getinfo([network/thumby]),[ border=0 alt="],getinf(x,[name]),["></a>],newline()))])]))
Click the images below to make R4 change scene:<br>
### get([y])
<br>

Thanks

J_R
 
I am assuming this is an HTML file. As for the code within the file, it's javascript not perl. Knowing that, the comments are incorrect. They should be like.
Code:
[b]<!-- // this block is commented out[/b]
hide(set([y],[])) hide(for([x],[0],sub(getcount(),[1]),[if(equal([scene],getinf(x,[type])),[set([y],strcat(y,[<a href="cmd.html?cmd=scene&sc=],x,[" target="CMD"><img src="scene/],getinf(x,[file]),[.jpg" width=],getinfo([network/thumbx]),[ height=],getinfo([network/thumby]),[ border=0 alt="],getinf(x,[name]),["></a>],newline()))])]))
[b]-->[/b]

Click the images below to make R4 change scene:<br>

[b]<!-- // this block is commented out[/b]
get([y])
[b]-->[/b]

M. Brooks
 
doesn't 'commented out' mean 'disabling' the code between the arrows? (because that's the whole file!!)

What do you mean by 'the comments are incorrect'

this is the whole file:

scene_view.HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor="#000000" text="#FFFFFF" link="#00FF00" vlink="#009933" alink="#FFFF00" topmargin="0">
<font face="Arial, Helvetica, sans-serif" size="1">
### hide(set([y],[]))
### hide(for([x],[0],sub(getcount(),[1]),[if(equal([scene],getinf(x,[type])),[set([y],strcat(y,[<a href="cmd.html?cmd=scene&sc=],x,[" target="CMD"><img src="scene/],getinf(x,[file]),[.jpg" width=],getinfo([network/thumbx]),[ height=],getinfo([network/thumby]),[ border=0 alt="],getinf(x,[name]),["></a>],newline()))])]))
Click the images below to make R4 change scene:<br>
### get([y])
<br>
<br>
If images don't load on this page, click on them and wait for R4 to change scene. Then, when the scene looks good, click the scene's icon in the bottom-left pane. This will take a screenshot to be used as the icon.
</font></BODY></HTML>

Thanks

J_R
 
# = Perl comment
<!- -> = HTML comment

As of current you have Perl comments within your HTML document which is incorrect.

M. Brooks
 
so it will work on my psp

it must be some type of psp script, looks similar to javascript but I don't think it is. Maybe C++?

- Kevin, perl coder unexceptional!
 
thanks guys but i think i should have explained it better.

this file is part of a server that runs on a pc when winamp is running and you connect via a web browser thru a local network to control winamp and the visulisation plugin.

The page loads up 100+ images but i dont think the psp can handle that coz it keep freezing, so i thought if i could find out what kind of code it is and then i could get it to display on seperate pages.

btw. M Brooks wotz with ur website it just says resume??
 
btw. M Brooks wotz with ur website it just says resume??
LOL! Everyone asks that question. This was to be a website that contained my resumé for employment. Unfortunately I have been too lazy to do so. No incentive since I already have a job.

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top