Posts that hosts is monitoring
|
Mar 10, 2008
|
Topic: Is there any way to get binary data from a website? Why would you need to load images in such weird way? |
|
Mar 10, 2008
|
Topic: Is there any way to get binary data from a website? xmlHttpRequest mutilates the data, but if you do a search on the web you might be able to find a solution that repairs that. |
|
Sep 18, 2007
|
Topic: Simple script to replace a link Thanks Yansky
Instead of being |
|
Sep 18, 2007
|
Topic: Simple script to replace a link Use sizzlemctwizzle's version, but put it in your original replace function.
var link;
link = document.body.getElementsByTagName("a")
for (var i = 0; i < link.length; i++) {
link[i].href = link[i].href.replace("index.php?page=sample&id=", "/sample/id"+link[i].href.split('id=')[1]+".jpg");
}
Note: you may have to escape some characters in the replace. |
|
Sep 18, 2007
|
Topic: Simple script to replace a link ima noob :) Can't get it to work. I've tried all kinds of this but nothing. Here's the old and new...
|
|
Sep 14, 2007
|
Topic: Simple script to replace a link
|
|
Sep 12, 2007
|
Topic: Simple script to replace a link I just noticed it's changing all the links. Is there a way to only affect links that have page=sample? Thanks |
|
Sep 10, 2007
|
Topic: Simple script to replace a link Thanks! |
|
Sep 10, 2007
|
Topic: Simple script to replace a link link[i].href = '/sample/id'+link[i].href.split('id=')[1]+'.jpg'; |
|
Sep 9, 2007
|
Topic: Simple script to replace a link I need to replace...
with...
I've tried messing with an existing script but can't figure out how to add the .jpg at the end.
|
