Log In · Register

 
profile picture, is there any way i can make it larger??
pynk_laday
post Dec 16 2004, 09:59 AM
Post #1


Senior Member
***

Group: Member
Posts: 51
Joined: Dec 2004
Member No: 68,810



well yea i just want to know if there is a way i can make my profile picture on my xanga any bigger??? ive seen other xangas with bigger pictures so i would like to know of the code....i think i saw it on here but im not sure how to use it wacko.gif _unsure.gif ....

thanx..
 
 
Start new topic
Replies
pynk_laday
post Dec 16 2004, 08:16 PM
Post #2


Senior Member
***

Group: Member
Posts: 51
Joined: Dec 2004
Member No: 68,810



daaaang i cant get it!!! i change the image link...ok look heres what i have coded

CODE
<!-- begin code provided by createblog.com -->
<script type="text/javascript">
 //
 // Copyright ?004 by EasterEgg.
 //
 // For use at Xanga only.
 //
 // This script allows you to use any online image as a profile pic,
 // regardless of it's size. You're no longer confined to 160 x 160 pixels
 // or the maximum width that the left sidebar allows, since this script
 // will also adjust the width of the left sidebar as you see fit.
 // Random pics will be chosen if you have added more than one profile pic
 // to the array "newProfileImages" below.
 //
 // This script is freeware and can be freely used as long as the copyright
 // notice and the comments in this script remains intact. It is provided
 // 'as is' without guarantees of any kind.
 //
 // The script doesn't work for Mac users...
 //

 // ****************** BEGINNING OF WHAT YOU CAN EDIT ********************

 // ***** Set the width of the image(s). Note that this has no effect in Netscape.
 maxWidth = 250;

 // ***** add as many images as you like to the array below.
 var newProfileImages = new Array(
     "http://img.photobucket.com/albums/v320/pynk_laday1/EnesGraduation001.jpg",
     "http://img.photobucket.com/albums/v320/pynk_laday1/EnesGraduation005.jpg" // <-- !!! no comma after last img!
 );

 // ********************* END OF WHAT YOU CAN EDIT ************************
 
 indexNr = Math.round(Math.random() * (newProfileImages.length));
 if (indexNr == newProfileImages.length)
     indexNr = newProfileImages.length - 1;
     
 newProfilePicURL = newProfileImages[indexNr];
 
 newImage = new Image(maxWidth,0);
 newImage.src = newProfilePicURL;

 var allImages = document.images;

 // rule out Mac users
 if (navigator.userAgent.indexOf('Mac') == -1)
 {
     for ( i = 0; i < allImages.length; ++i )
     {
         if (allImages[i].src.indexOf('profile') != -1)
         {
             allImages[i].src = newProfilePicURL;
             // Netscape doesn't allow adjusting the image width
             if (navigator.userAgent.indexOf('Netscape') == -1)
             {
                 allImages[i].width = newImage.width;
                 newStyle = '<style>table.left { width:' + (newImage.width + 40) + 'px;}</style>';
                 document.write(newStyle);
             }
             break;
         }
     }
 }
</script>
<!-- end code provided by createblog.com -->
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: