PDA

View Full Version : HTML/Java (?) Help!



ontheindianside
08-11-2010, 04:11 PM
I work for an organization whose website is done in HTML. In fact, I do all the HTML even though I pretty much have no idea what I'm doing. Normally, I just copy the code for whatever thing I'm trying to duplicate and then change the texts or the links or whatever. But now I'm trying to do this thing with what I think is a javascript slideshow (it's pictures in a line that, when you click on the thumbnails, display at normal size in the main area of the page). I kind of thought I had it figured out, but then I came across these seemingly random numbers ('fpphoto_115' for example) that can't be random because when I tried to make one up, the picture came up "broken" (you know, the jagged box or whatever). The actual images are in a directory, and I found that, but I can't figure out these numbers to save my life. I would greatly appreciate some help in 1990s-style web editing!

Here is the code. Can anyone tell me what these numbers are and how I get them?

<a target="_self" href="Javascript:fp_ShowImg(document

['fpphoto_115'],'500','333','7200',0);"><img hspace="10" vspace="5" border="0"

src="photogallery/photo13222/disp-lhslib.jpg" id="fpphoto_115" name="fpphoto_115"

lowsrc="Graphics/disp-lhslib.jpg" width="100" height="66" title="" align="absmiddle" /></a>
<a target="_self" href="Javascript:fp_ShowImg(document

['fpphoto_4408'],'250','184','7200',1);"><img hspace="10" vspace="5" border="0"

src="photogallery/photo13222/bbw.jpg" id="fpphoto_4408" name="fpphoto_4408"

lowsrc="Graphics/bbw.jpg" width="100" height="73" title="" align="absmiddle" /></a>

toriMODE
08-11-2010, 06:18 PM
The 'fpphoto_115' is referencing disp-lhslib.jpg. So just make sure that you are consistent in all three places that are referencing 'fpphoto_115'. The id and name are also called that same name. It doesn't really matter what that is called as long as the id, the name, and the document are the same.

ontheindianside
08-12-2010, 01:21 AM
The 'fpphoto_115' is referencing disp-lhslib.jpg. So just make sure that you are consistent in all three places that are referencing 'fpphoto_115'. The id and name are also called that same name. It doesn't really matter what that is called as long as the id, the name, and the document are the same.

Thanks. I don't really get it, though (that's how bad a web editor I am, and I've now managed 4 websites - three in HTML and one in some more modern, much easier format: php style). 'fpphoto_115' is a picture that's already up there, and I'm trying to add new pictures. You wouldn't be able to tell me how to get the numbers for the new pictures, would you? I'd be eternally grateful.

SageBrushFire
08-12-2010, 06:05 AM
^In the end, everything is eventually HTML.

You should really consider convincing them to switch to Simpleviewer. It's a little complicated to set up but adding images is extremely easy and it looks wonderful because it's made in flash.

There really isn't enough information provided here for me, personally, to be of very much help. Could you provide a link to the actual website or at least the entire source code for the page? (You'll probably want to put it in a Code tag and/or a spoiler.)

ontheindianside
08-12-2010, 11:28 AM
^In the end, everything is eventually HTML.

You should really consider convincing them to switch to Simpleviewer. It's a little complicated to set up but adding images is extremely easy and it looks wonderful because it's made in flash.

There really isn't enough information provided here for me, personally, to be of very much help. Could you provide a link to the actual website or at least the entire source code for the page? (You'll probably want to put it in a Code tag and/or a spoiler.)

Yeah, I know that technically the easier page is also made with HTML, but it's seriously almost as easy to update as it is to post here! We're planning to upgrade the website in question sometime, which would greatly decrease my daily frustration and eye strain, but we are a small organization (I'm actually the 60/40% shared and sole employee of two nonprofits that share office space) and aren't exactly swimming in money.

I don't know if I feel comfortable putting all the code on the public Internet. Not that I think you guys are going to hack it; it just feels wrong. Is it?

SageBrushFire
08-12-2010, 05:11 PM
^Well this is kind of one of those situations where you have an ultimatum: put the source code and maybe get the help or don't and probably don't get help.

If you're worried about it being posted publicly you can send it to one of us in a Private Message.

Also you have to consider the likelihood of someone actually wanting to hack your site (and whether or not the source code of 1 html page would actually be a security risk; if you made the page correctly it shouldn't). No offense but unless you're a significant website with a big userbase or a lot of money on the line, most people who would do that kind of stuff wouldn't even bother.

pb
08-13-2010, 07:06 AM
My nerd-take on this is a little cumbersome, but check your PMbox OP.

ontheindianside
08-13-2010, 11:19 AM
^Well this is kind of one of those situations where you have an ultimatum: put the source code and maybe get the help or don't and probably don't get help.

If you're worried about it being posted publicly you can send it to one of us in a Private Message.

Also you have to consider the likelihood of someone actually wanting to hack your site (and whether or not the source code of 1 html page would actually be a security risk; if you made the page correctly it shouldn't). No offense but unless you're a significant website with a big userbase or a lot of money on the line, most people who would do that kind of stuff wouldn't even bother.

I was definitely kidding about the hacking thing. I just feel weird about putting all our code out there for, potentially in the most paranoid universe ever, my boss could see it.


My nerd-take on this is a little cumbersome, but check your PMbox OP.

Thanks. Looking now.

SageBrushFire
08-13-2010, 03:09 PM
I was definitely kidding about the hacking thing. I just feel weird about putting all our code out there for, potentially in the most paranoid universe ever, my boss could see it.



Thanks. Looking now.

Actually that's not so far-fetched.

The job I have right now is a writing job. Because of this I gave my boss a link to my blog with writing examples. Usually I keep my personal life (sixthcrusifix) and my professional life (sagebrushfire/steven) completely separate. Somewhere on my blog was a link to my regular e-mail.

My boss googled it and found my Deviantart Page, my Myspace Page AND ALL OF MY @FORUM POSTS! Thank God he's, apparently, not some hyper-conservative bible thumper; but he did say "Ah I see you're a Tori Amos fan, you've got like 2,000 posts on that forum."

At first it creeped me out but then I realized that I'm at his house a lot and he has 5 kids; so it's not that unreasonable to want to make sure I'm not some weirdo. ANYWAY, case in point, @forumzed and Unforumzed are public and Google loves to read and cache their pages.

Tarendai
08-14-2010, 03:22 PM
Oh G*d

Use JQuery and JCycle, or another plugin, the markup is miles easier to understand, its sooo much simpler... No nasty inline javascript on html tags

AzMoo
08-16-2010, 08:48 AM
Still having problems? If you're uncomfortable about posting it here, PM me the url of your website and I'll help you out.