How do you use variables in a refererence?

D

Dev Carter

I have a Web design problem that I haven't found any answers to via
searches.

My problem is coding Ebay pages with lots of pictures of an item from
different angles the pics to save on fees are hosted elsewhere. Each
large pic is accessed via a thumbnail or via a descriptive reference
that roughly mimic the layout that ebay does for a fee.

I give all items an item number and the pics and thumbnails jpegs are
given its number (eg 106a,106b,106c,106d,106e,106f). Although I use
dreamweaver templates to cut down the work on coding a file, it
becomes tedious if you are referring to each large file and thumbnail
by direct reference to the file, if you have 20 references to change,
mistakes are inevitable.

Is there a way to simplify this via creating a variable that can be
interpreted correctly via a script or whatever. Like:

var name=item,value="106"
then reference the relevant pics like
<A HREF="images/(.item+a+.jpg)".<IMG SCR ="/thumbnails/(.item+a+.jpg)
"></A>

I am suffering druge block, any help much appreciated.

DC
 
T

Toby A Inkster

Dev said:
Is there a way to simplify this via creating a variable that can be
interpreted correctly via a script or whatever.

If this was your own server, yes. But as it's eBay, no.
 
S

Steve R.

Dev Carter wrote in message ...
I have a Web design problem that I haven't found any answers to via
searches.

The simplest way to display ebay images is to put them on a neatly laid-out
and separate web-page, then just create a hyperlink from your ebay page to
the images, or thumbnails, so that people on click on images they want to
see enlarged.
 
A

Andy Dingley

Is there a way to simplify this via creating a variable that can be
interpreted correctly via a script or whatever. Like:

Best way is something like XSLT or Perl, run on your desktop. Then you
take the output as static HTML and upload it where you wish.

Another way (which admittedly is how I do it) is to use client-side
JavaScript. I feed a routine two parameters, a base URL for the
images and an image count. This function then generates the page.

It also uses CSS and media=print so that the printed version of the
page gets the full-size images of all images, not just the thumbnails.
 
R

Richard

Dev said:
I have a Web design problem that I haven't found any answers to via
searches.
My problem is coding Ebay pages with lots of pictures of an item from
different angles the pics to save on fees are hosted elsewhere. Each
large pic is accessed via a thumbnail or via a descriptive reference
that roughly mimic the layout that ebay does for a fee.
I give all items an item number and the pics and thumbnails jpegs are
given its number (eg 106a,106b,106c,106d,106e,106f). Although I use
dreamweaver templates to cut down the work on coding a file, it
becomes tedious if you are referring to each large file and thumbnail
by direct reference to the file, if you have 20 references to change,
mistakes are inevitable.
Is there a way to simplify this via creating a variable that can be
interpreted correctly via a script or whatever. Like:

Get irfanview. It can generate an html page with dozens of images in a
flash.
www.irfanview.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top