Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 11-04-2007, 01:32 PM a mozila problem
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i am opening a popUp with an enlargement of a thumbnail for agallery . the code i have on each thiumbnail is this
Code:
  <a href="#"  onclick="MM_openBrWindow('akivaBigPicts.html','big','width=420,height=500'),test(0)"><img src="thumbnails/1.jpg" width="75" height="75" border="0" /></a>
the test function at the top of the page is:
Code:
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function newImage(arg) {
 if (document.images) {
  rslt = new Image();
  rslt.src = arg;
  return rslt;
 }
}
function changeImages() {
 if (document.images && (preloadFlag == true)) {
  for (var i=0; i<changeImages.arguments.length; i+=2) {
   document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  }
 }
}
var  ShowPhotoIndex;
 function  test(number){
 ShowPhotoIndex=number;
 }
this works in explorer and in mozila it doesnt, why?
pizza is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-04-2007, 01:53 PM Re: a mozila problem
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i think the problem could be in th popUp it self called akivaBigPicts.html
that is where i am loading the big pictures to and i can go foarward/ backwards with Arrows. i also have a problem that it take it avery long time for the first picture to appear(in explorer)
the code is this:
Code:
 var Images=new Array (6);
 var loc=0;
 var ImageText=new Array()
ImageText[0]=" name 1 ";
ImageText[1]=" name2 ";
ImageText[2]=" name3";
ImageText[3]="name4";
ImageText[4]="name5";
ImageText[5]=" name6";
 function LoadPhotos()
 {
  for (i=0; i<Images.length; i++)
  {
   Images[i]=new Image();
   Images[i].src=(i+1)+".jpg";
  }
 }
 function NextPhoto()
 {
  loc++;
  if (loc>=Images.length)
  {
   loc=0;
  }
  textTemp=ImageText[loc];
  ShowPhoto (Images[loc].src,textTemp);
 }
 function PreviousPhoto()
 {
  loc--;
  if (loc<0)
  {
   loc=Images.length-1;
  }
  textTemp=ImageText[loc];
  ShowPhoto (Images[loc].src,textTemp);
 }
  function ShowPhoto (filename,textTemp)
 {
 
  pic.src=filename;
  document.getElementById("text").innerHTML=textTemp;
  pic.alt="Filename: "+filename;
  window.status=filename;
 
 }
  LoadPhotos();
 loc=4;
window.onload = function(){
  var i = 0;
  if (window.opener) i = window.opener.ShowPhotoIndex;
  pic.lowsrc="cover.gif";
 pic.src=(Images[i].src);
 document.getElementById("text").innerHTML=ImageText[i];
loc=i;
}
something here isnt working with mozila...
pizza is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to a mozila problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09817 seconds with 12 queries