Log In · Register

 
 
Closed TopicStart new topic
help with any siz profile pic. code
broken_lullaby
post Feb 12 2005, 06:28 PM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: Feb 2005
Member No: 99,222



so i used the code that i found on this site which allows you to have make your profile pic any size, but it doesn't work!


here's EXACTLY what i pasted into my website stats:

QUOTE
<!-- 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://tinypic.com/view.html?pic=1puo46"
  );

  // ********************* 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 -->


someone help please? thanks =)
 
creamysmile11
post Feb 12 2005, 07:28 PM
Post #2


guess what... chicken butt.
*****

Group: Member
Posts: 316
Joined: Apr 2004
Member No: 13,740



idk what it is but usually the codes are outdated and xanga sometimes doesnt allow codes used like that... they stopped the transition effects for example.
 
x-hobo-x
post Feb 13 2005, 02:14 PM
Post #3


xxx hobo ;)
****

Group: Member
Posts: 272
Joined: Dec 2004
Member No: 74,219



I think you need a custom module for this one..

Copy and paste into Custom Header:



Copy and paste into Website Stats:


And.. that's all :P
 
largosama
post Feb 13 2005, 02:18 PM
Post #4


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



why would you need custom module yawn.gif
 
x-hobo-x
post Feb 13 2005, 02:36 PM
Post #5


xxx hobo ;)
****

Group: Member
Posts: 272
Joined: Dec 2004
Member No: 74,219



^

cus i tried it with just the normal one and it didnt work, then i put custom and it worked.. so ha! :P
 
broken_lullaby
post Feb 13 2005, 06:47 PM
Post #6


Newbie
*

Group: Member
Posts: 7
Joined: Feb 2005
Member No: 99,222



i already used that code on my xanga and it messed it up...

everything came out too close together...
 
[4]eternity
post Feb 13 2005, 10:08 PM
Post #7


Senior Member
*****

Group: Member
Posts: 988
Joined: Feb 2005
Member No: 98,884



... i think that it's the wrong code, there's a pop up one though... that can make the size of your picture... in a pop up mode. check around the xanga scripts section, i've seen those pop ups picture profilre crap thing before...
 

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