passing parameters to .html, parameters html |
passing parameters to .html, parameters html |
koffeeman |
Jul 27 2021, 03:20 PM
Post
#1
|
Newbie Group: Members Posts: 14 Joined: 17-September 19 Member No.: 26,991 |
i feel 'comfortable' with .html but i do not consider myself 'expert'
- i would like to ask for help on something i am trying to do: to simplify: i generate many (MANY) .html files whose sole purpose is to display .jpg files and (optional) descriptions. currently the high level .html has 3 links: <a href="grid3.html">3-Across Grid</a><br> <a href="grid6.html">6-Across Grid</a><br> <a href="grid9.html">9-Across Grid</a><br> to which i call the appropriate subsequent .html where the only difference is in the "width=" parm on the <img src="xxx.jpg" width="33%" alt="a01"> [in grid3.html] or <img src="xxx.jpg" width="16%" alt="a01"> [in grid6.html] or <img src="xxx.jpg" width="11%" alt="a01"> [in grid9.html] tag. this provides a grid of the .jpg file either 3, 6 or 9 across - the three gridX.html files will display the same .jpg list of files. i would like to just call ONE grid.html file from the high level .html file, passing the subsequent grid.html file a single value (the percentage: 33, 16, 11) this will mean a) that i only need to generate ONE file, and b) i can add single, 2-across, 4-across, 5-across, 7-across, etc. "any-across" when i go to .html help sites for 'passing parameters to .html files' i get much more complex answers using "gridX.html/? pctg=xx" and requiring javascript to 'get' the parm and never a description/example on how to use the parameter when i have it, into the <img tag's 'width='. IS THERE ANY SIMPLE WAY OF SPECIFYING A WIDTH in an .html AND PROVIDE / USE, THE WIDTH, in a subsequent .html ? to admin's: if i have posted incorrectly, i'm sorry, and please feel free to delete this question. |
Christian J |
Jul 28 2021, 04:12 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
Or, if the OP's goal is just to let users change the size of images on screen, it can be done much easier with the browser's own Zoom control --at least if there's no text on the page that would get zoomed too.
|
Lo-Fi Version | Time is now: 27th April 2024 - 10:42 AM |