Message Switcher

Don Von Alpha Dom
by Don Von Alpha Dom · 2 posts
11 years ago in Messages Panel
Posted 11 years ago · Author
This code tweaks the messages panel and shows every message with a delay of 30 seconds in-between.

Code
<script type="text/javascript" src="http://data.imvucodes.net/js/prototype/prototype.js"></script>
<script type="text/javascript" src="http://data.imvucodes.net/js/prototype/scriptaculous.js"></script>

<script type="text/javascript">
var currentMsgNum = 0;
var maxMsgNum = 0;
var madeBy = 'www.imvucodes.net';
function prepareMessages() {
  var objs = $('messages_panel_body').getElementsByClassName('msgWrap');
  maxMsgNum = objs.length - 1;
  for (i = 0; i <= maxMsgNum; i++) {
    objs[i].id = 'msgScroller_' + i;
    Effect.Fade(objs[i].id, { duration:0.1 });
  }
}
function nextMsg() {
  if (currentMsgNum == maxMsgNum) {
    var newMsg = 0;
  } else {
    var newMsg = currentMsgNum + 1;
  }
  new Effect.Fade('msgScroller_' + currentMsgNum, { duration: 1.0 });
  new Effect.Appear('msgScroller_' + newMsg, { duration: 1.0 });
  currentMsgNum = newMsg ;
}
prepareMessages();
nextMsg();
window.setInterval('nextMsg()', 30000);
</script>
<style type="text/css">
  #messages_panel_body {
    height:180px!important;
  }
  .msgWrap {
    position:absolute!important;
    top:30px!important;
    border-top:none!important;
    width:100%;
  }
</style>


You do not need any of the following code, it is just a backup of the javascript files.
javascript.zip
Posted 8 years ago
hmm, you dont need any of the following codes? lol, you're right about that..I need a damn good teacher.

are there any here?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts