Author | Thread |
|
08/19/2004 11:07:54 PM · #1 |
I'm trying to edit the SubPage.html from the PS Web Photo Gallery maker.
The file is located here:
Program Files\Adobe\Photoshop 6.0\Presets\WebContactSheet\Table
In this file there are variables that PS uses like "%FILEINFO%" & "%IMAGESRC%". What I have done is put together a new SubPage template file that is strictly setup for my website. I have included a layer with an iframe. In this iframe I am trying to insert a url to another html file. This template works just fine if you insert the url directly into the src=.
What I was trying to do is to use one of the variables that PS uses "%FILEINFO%" which uses the Caption from the image's file info.
I want to set the html filename using %FILEINFO%" and add the ".html"> to the end like this.
Below is the javascript I was using to try to concatenate the variables together.
Is my syntax correct? I have tried to use %FILEINFO% without setting it to a variable too,,,,didn't work. Just thought maybe someone here could help. If I use %FILEINFO% by itself, I get the value that I entered into the Caption. So its not the %FILEINFO% variable. Its the way I am putting them together. I'm a beginner at this so any help would be great!
Thanks in advance! |
|
|
08/20/2004 01:23:07 AM · #2 |
Don't know java very well, so this most likely won't help. Instead of delcaring var finfo, maybe try string finfo. |
|
|
08/20/2004 02:39:44 AM · #3 |
Without testing it myself, it looks like you're missing a couple quotes in here. Try using single quotes to wrap the whole string (or \" escape codes if it floats your boat)
var url1=' |
|
|
08/20/2004 04:47:58 AM · #4 |
I would write the script this way:
You could just write the page like this, though:
...without any script, because it looks like Photoshop will use raw HTML for the preset files. Is there any reason you wanted to script it?
|
|
|
08/20/2004 02:11:18 PM · #5 |
Originally posted by Mousie: I would write the script this way:
You could just write the page like this, though:
...without any script, because it looks like Photoshop will use raw HTML for the preset files. Is there any reason you wanted to script it? |
Thanks guys!
Yes Mousie, thats how I ended up doing it last night. I think I tried it once and it didn't work for some reason, so I moved on to try something else. I had the script that I use for my email address so that the bots can't harvest it. So, I tried using that. I went to bed at 11pm and when my head hit the pillow, it just came to me that I was doing it right in the first place and I got up and rewrote it just like you have it, without the scripting, and it worked.
Thanks again. |
|
|
08/20/2004 05:05:32 PM · #6 |
I've been doing this so long it's second nature by now, it's no problem, really. :)
|
|
Home -
Challenges -
Community -
League -
Photos -
Cameras -
Lenses -
Learn -
Help -
Terms of Use -
Privacy -
Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 08/02/2025 07:30:16 PM EDT.