bluetooter
07-17-2010, 02:47 PM
I need someone who can help me create javascript code which will create a hyperlink string with a changing variable:
This script should write and execute a hyperlink string which opens a separate pop-up window, nothing more. No image files, no subfolders, forget all that stuff. JUST A HYPERLINK.
The hyperlink SYNTAX does all the work in loading and selecting the images, NOT THE SCRIPT. There is only one changing variable, the value following clipart_id= Here is the basic hyperlink syntax:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=00000&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
THERE ARE ALWAYS 2 WINDOWS: ONE WINDOW HOLDS THE HTML; THE OTHER IS A POP-UP WINDOW (The opened hyperlink)
The basic html page will contain only 2 objects, an input box and a NEXT BUTTON.
Step 1: Initialize the variable from an input box, this variable is used to set the value following clipart_id= which is part of the hyperlink syntax
Step 2: The user inputs the initial variable which is used to write the first hyperlink string; click NEXT to launch the first pop-up window
Step 3: For each subsequent action Click NEXT - OnClick - This ADDS +1 to the initial variable, this variable is passed to be inserted in a new hyperlink string AND then launches a NEW hyperlink to open a NEW popup window. This is an infinite type of action which advances the value of clipart_id= every time the NEXT button is clicked.
Each time you click the NEXT button it advances a counter which executes a NEW hyperlink in a NEW popup window. The only thing that ever changes is the variable after clipart_id=, BUT the entire url syntax of the hyperlink string must be maintained exactly as shown below. If you change the syntax it will not work.
So, if the first value to start with is lets say 13000; this is input in a box; then the first hyperlink string will automatically be written and open using this:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=13000&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
Click the NEXT BUTTON and now a new hyperlink window will open which reads like this:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=13001&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
click the NEXT BUTTON and now a new hyperlink hyperlink window will open reads like this:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=13002&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
And so on and so on... Nothing else changes. So the "nextpath" after a CLICK is a complete new hyperlink string which contains a vew variable for the value following clipart_id=
All I am trying to do is execute a standardized hyperlink string with one changing variable.
CAN ANYONE HELP ME TO WRITE THIS CODE?
This script should write and execute a hyperlink string which opens a separate pop-up window, nothing more. No image files, no subfolders, forget all that stuff. JUST A HYPERLINK.
The hyperlink SYNTAX does all the work in loading and selecting the images, NOT THE SCRIPT. There is only one changing variable, the value following clipart_id= Here is the basic hyperlink syntax:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=00000&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
THERE ARE ALWAYS 2 WINDOWS: ONE WINDOW HOLDS THE HTML; THE OTHER IS A POP-UP WINDOW (The opened hyperlink)
The basic html page will contain only 2 objects, an input box and a NEXT BUTTON.
Step 1: Initialize the variable from an input box, this variable is used to set the value following clipart_id= which is part of the hyperlink syntax
Step 2: The user inputs the initial variable which is used to write the first hyperlink string; click NEXT to launch the first pop-up window
Step 3: For each subsequent action Click NEXT - OnClick - This ADDS +1 to the initial variable, this variable is passed to be inserted in a new hyperlink string AND then launches a NEW hyperlink to open a NEW popup window. This is an infinite type of action which advances the value of clipart_id= every time the NEXT button is clicked.
Each time you click the NEXT button it advances a counter which executes a NEW hyperlink in a NEW popup window. The only thing that ever changes is the variable after clipart_id=, BUT the entire url syntax of the hyperlink string must be maintained exactly as shown below. If you change the syntax it will not work.
So, if the first value to start with is lets say 13000; this is input in a box; then the first hyperlink string will automatically be written and open using this:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=13000&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
Click the NEXT BUTTON and now a new hyperlink window will open which reads like this:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=13001&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
click the NEXT BUTTON and now a new hyperlink hyperlink window will open reads like this:
<a href="http://www.websitename.com/clipart/manipulate?clipart_id=13002&path=%2Fclipart%2Feps%2F&lockRatio=true&width=500&height=500"></a>
And so on and so on... Nothing else changes. So the "nextpath" after a CLICK is a complete new hyperlink string which contains a vew variable for the value following clipart_id=
All I am trying to do is execute a standardized hyperlink string with one changing variable.
CAN ANYONE HELP ME TO WRITE THIS CODE?