- This topic is empty.
July 8, 2012 at 12:46 am #38817
Here is my site: http://dkurf.esxsb.servertrust.com/
I need to create specific styling for this page: http://dkurf.esxsb.servertrust.com/ProductDetails.asp?ProductCode=dfhs
I don’t have access to the html for that page so i need to override the styles that are throughout the site only for that page.
But if any one has any suggestions, it would be super helpful!
EDIT: Fixed it with this script:
July 8, 2012 at 1:15 am #105637
Each new line within the document.writeln would need to be escaped with a (back slash). For example:
Alright i used your second suggestion, but i still can’t seem to make it work. I put the script in the template_220.html file, if you want to take a look. Thanks!July 8, 2012 at 2:49 pm #105662
Could you provide a link? I’m not quite sure what the template_220 file is.
Also, just be aware that the script (if unaltered) will only work if either /ProductDetails.asp, -p, or _p are in the URL’s path name.July 8, 2012 at 7:29 pm #105676
It will be in the source of this page: http://dkurf.esxsb.servertrust.com/ProductDetails.asp?ProductCode=dfhs
I put the script in right after the body tag, But i’m having the worst time getting it to work.July 12, 2012 at 7:32 am #105925
Sorry to respond to this so late, but I would just like to suggest that scripts within the body should always be placed after any elements being affected by them. This should allow the element(s) to load first and ensure that the script won’t attempt to operate on something that doesn’t yet exist. (Most likely this was the problem you had with my script.)
Right before the body closing tag, </body>, (if possible) is the safest place.