Graphics Path referenced in Javascript

Had to make a bit of a change on a project setup due to hosting requirements.

Long story short, my source directories changed and in my Javascript code to get the job done, I just referenced the absolute path. Is there a way to call in Graphics Path directly?


<script type="text/javascript"> function swapImage_112(id_112,primary_112,secondary_112) { src=document.getElementById(id_112).src; if (src.match(primary_112)) { document.getElementById(id_112).src=secondary_112; } else { document.getElementById(id_112).src=primary_112; } }</script><!DOCTYPE html><html lang="en"><head><img id="desat_112" onclick="swapImage_112( 'desat_112', '/B2BWL/graphics/BronzeVIP.jpg', '/B2BWL/graphics/East Centre-Wings - Tier 1 (Block 1a) - Back.png' )" src="/B2BWL/graphics/BronzeVIP.jpg"/></head></html>


So namely here where the path says "/B2BWL/graphics/" it would be great to get that back to reference graphics path. Mainly because it's made my survey consistency checking file HUGE as there's three variants of 112 options!

Cheers

Resolved
4 replies