Code snippet for calling img src's
Hello Everyone,
Nice to find a forum as clean & packed with very helpful info that is really useful and helps the community. However, I could not find this info, I am intergrating a program into my FrontPage templates and really don't want to type the path to all the images on each page.
I need a calling code that can be inserted into the page that will tell the program the path to where my images are stored on my server so they will display properly. If you share this with me I would be very thankful and then I can finish my work.
Thank you
Busy posted this at 21:47 — 29th September 2005.
He has: 6,151 posts
Joined: May 2001
Frontpage and templates aren't the best combination, Frontpage ads so much bloat to the code.
There (or was) a small standalone program (freeware) called typeitin, is a small macro window where as you could put anything in it and at a press of a button it would display, great for this sort of thing, chat programs, email sigs ... I believe that is what you're after, if not then maybe a javascript include ? add your line of code in a .js file and include that, you'll still have to add the code for the js file thou.
A real editor has search and replace, can make editing lots of pages quick and easy. I use edit pad, can have several hundred tabs open at a time and with one click all files are changed.
hypergecko posted this at 03:28 — 30th September 2005.
They have: 6 posts
Joined: Sep 2005
Thanks for the reply, I need something that looks something like this
This isn't it, but similar in style. I met a guy around a year ago that showed me how to do it and saved it as a text file but my computer got a bullet hole in it while in Iraq and I lost everything.
Thanks again
demonhale posted this at 03:35 — 30th September 2005.
He has: 3,278 posts
Joined: May 2005
Can you elaborate a little more on what you intend to do? I cant seem to get what you mean... example this is a standard image call code . . . Linking to an image CLICK HERE TO SEE IMAGE . . .
Roo posted this at 04:04 — 30th September 2005.
She has: 840 posts
Joined: Apr 1999
Okay that is totally wrong since there is no tag.
In html 4 the image tag does not have a closing tag, and in XHTML the image tag is closed like so:
It sounds like what you are looking for is some sort of Front Page scripting or something for the program itself. I don't think you'll find many people here using that program as it's use is very much frowned upon.
Hmmmm...are there forums out there somewhere that cater to Front Page?
Roo
hypergecko posted this at 04:09 — 30th September 2005.
They have: 6 posts
Joined: Sep 2005
I have a program written in perl and I am putting the code inside the body of the FP template. The template resides in the cgi-bin so the program will function, the problem is that all the buttons, header and all the jpg's do not show up. The alt tag and text shows and not the pictures. I only used the code in the earlier post to give you an idea of what I need.
I can use a basic call path in the cgi-bin to display the pictures but it would take weeks. The call code will be placed in the head or body, I can't remember.
demonhale posted this at 05:13 — 30th September 2005.
He has: 3,278 posts
Joined: May 2005
ok i was carried away by the closing tags, its supposed to be ... /> thanks for correcting that Roo... Im just pointing out that I cant understand what gecko wants to know about...
hypergecko posted this at 13:32 — 30th September 2005.
They have: 6 posts
Joined: Sep 2005
Let me try again, as you know for most templates to correctly view the jpg's or any pic they usually need to be in the images folder right under the /public_html/images/ on the server. My jpg's are in the cgi-bin because thats where my script lives, therefore my jpg's don't display properly because they are in the /public_html/images folder. I can call each and every button, jpg individually by placing this before each one. Example (http://mywebsite.com/images/button.jpg) which works fine but it would take a very long time to insert the http://mywebsite.com/ before every jpg on the page.
I would like a small string of code I can put in the header or body of the page that would direct ALL jpgs path to the http://mywebsite.com/images/ location.
I don't know either way to explain it, hopefully you will see what I am trying to do.
Thanks
demonhale posted this at 15:09 — 30th September 2005.
He has: 3,278 posts
Joined: May 2005
Ah get it now, try and use ... if the cgi-bin folder is inside the public_html folder like this (public_html/cgi_bin) then the code above would work...
hypergecko posted this at 23:49 — 30th September 2005.
They have: 6 posts
Joined: Sep 2005
I'll give it a shot, it will be a few days before I can try it, Going out of town. I'll let you know if it works, Thanks again.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.