Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-12-2012, 08:47 AM   PM User | #1
thredder
New Coder

 
Join Date: Mar 2011
Posts: 24
Thanks: 4
Thanked 0 Times in 0 Posts
thredder is an unknown quantity at this point
Question Help replacing image path or source

Hello there, wonder if anyone can help me?

There are 5 images on a site I'm working on which I have no access to and cannot edit or change. It's a shopping cart system and the images are for star ratings. They're so small that you can barely see them, so I want to replace them with my own.

To do this, because I need to overwrite the file path, I need something which will recognize each individual image path and then replace it with my own. So, for example, their images come from...

/images/image1.gif
/images/image2.gif
/images/image3.gif
/images/image4.gif
/images/image5.gif

and I need to replace each of them with something like...

/myusername/image1.gif
/myusername/image2.gif
/myusername/image3.gif
/myusername/image4.gif
/myusername/image5.gif


None of the images have an id or class and I cannot add one to them as I don't have access. The area they're generated in CAN have an ID or class if that helps, I can add that.

I've looked around on google for something but I'm really not great at understanding scripts and definitely can't write one myself. It's driving me crazy looking for something now, so I thought I'd ask the boffins on here!

Thanks for any help in advance, and please feel free to explain anything to me like I'm an idiot. It'll help!

Last edited by thredder; 12-12-2012 at 03:52 PM..
thredder is offline   Reply With Quote
Old 12-12-2012, 02:09 PM   PM User | #2
thredder
New Coder

 
Join Date: Mar 2011
Posts: 24
Thanks: 4
Thanked 0 Times in 0 Posts
thredder is an unknown quantity at this point
I have sorted this now.

Thanks
thredder is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:04 PM.


Advertisement
Log in to turn off these ads.