code a page so it loads a different...

User 2924428 Photo


Registered User
1,718 posts

You would have to re-sample the image yourself. Try Corel Draw, or Adobe Photoshop.
User 2147626 Photo


Ambassador
2,958 posts

Or something FREE... http://www.coffeecup.com/free-web-image-studio/
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 38401 Photo


Senior Advisor
10,951 posts

You're more than welcome to use the code I have on the home page of http://cattownrescue.org . There is a photo there of a cat picture in the right column area that changes with each refresh of the page. Gives people something different to look at when they come back I guess. Needs more photos in it though lol.

Anyways, if that helps at all, you're welcome to it :)
User 1638206 Photo


Registered User
32 posts

"unclemap" so your saying the size of the picture i'm trying to use can only be dictated by the actual true size of the image and not determined in the code?

Thank you "Gunsmoke" I do have that program from CC however I thought there might be a way to size the image itself within the code.

User 1638206 Photo


Registered User
32 posts

"Jo Ann" is this the part of the code that makes it happen?

<script type="text/javascript">
var ranNum = Math.floor(Math.random() * 12);
//alert(ranNum);
var quote = new Array(12)
var lnk = new Array(12)

quote[0] = "images/homepage_cats/howard_homepage.png";
quote[1] = "images/homepage_cats/mousalinni_homepage.png";
quote[2] = "images/homepage_cats/daryl_homepage.png";
quote[3] = "images/homepage_cats/kiwi_homepage.png";
quote[4] = "images/homepage_cats/kittypile1_homepage.png";
quote[5] = "images/homepage_cats/pinball_homepage.png";
quote[6] = "images/homepage_cats/goober_homepage.png";
quote[7] = "images/homepage_cats/cranky_homepage.png";
quote[8] = "images/homepage_cats/sasha_homepage.png";
quote[9] = "images/homepage_cats/suncats_homepage.png";
quote[10] = "images/homepage_cats/kittypile2_homepage.png";
quote[11] = "images/homepage_cats/sam_homepage.png";

lnk[0] = "index.html";
lnk[1] = "index.html";
lnk[2] = "index.html";
lnk[3] = "index.html";
lnk[4] = "index.html";
lnk[5] = "index.html";
lnk[6] = "index.html";
lnk[7] = "index.html";
lnk[8] = "index.html";
lnk[9] = "index.html";
lnk[10] = "index.html";
lnk[11] = "index.html";
</script>

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.