Click here to Skip to main content
15,887,338 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Show a graphic like Polygon at a panel in a web application (C#) Pin
Marc Firth27-Apr-09 22:08
Marc Firth27-Apr-09 22:08 
GeneralRe: Show a graphic like Polygon at a panel in a web application (C#) Pin
Frank Köppel29-Apr-09 1:01
Frank Köppel29-Apr-09 1:01 
QuestionPrinting a word document - file menu --> print -- should display our interface Pin
Hemant Thaker27-Apr-09 5:01
Hemant Thaker27-Apr-09 5:01 
QuestionPicking right tools for project Pin
Vorlonagent26-Apr-09 15:59
Vorlonagent26-Apr-09 15:59 
AnswerRe: Picking right tools for project Pin
Marc Firth26-Apr-09 21:58
Marc Firth26-Apr-09 21:58 
GeneralRe: Picking right tools for project Pin
Vorlonagent27-Apr-09 17:03
Vorlonagent27-Apr-09 17:03 
GeneralRe: Picking right tools for project Pin
Marc Firth27-Apr-09 22:03
Marc Firth27-Apr-09 22:03 
QuestionRandom image link display, if hover should stop the image link... Pin
Member 323010726-Apr-09 15:24
Member 323010726-Apr-09 15:24 
i wanna ask a question regarding this random image link/sequential image link display issue..i have write out the code and it works, but the problem for me is i dunno how to make the image stop when mouseover the image display..

these are my code, you can test it with ur html and put 3 images with the name specified below....

















var interval = 5; // delay between rotating images (in seconds)
var random_display = 0; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
var image1 = new imageItem("fheader18.png", "http://imdavidlee.com");
var image2 = new imageItem("fheader19.png", "http://limpek.com");
var image3 = new imageItem("davidlogo.jpg", "http://codebasic.net");

image_list = new Array();
image_list[image_index++] = image1;
image_list[image_index++] = image2;
image_list[image_index++] = image3;

var number_of_image = image_list.length;

function imageItem(image_location, link) {
this.image_item = new Image();
this.image_item.src = image_location;
this.image_item.link = link;
}

function stopImage() {
setTimeout("rotateImage()", NULL);
}


function getNextImage() {

if (random_display) {
image_index = Math.floor(Math.random() * image_list.length);
}
else {
image_index = (image_index+1) % number_of_image;
}

var new_image = image_list[image_index];
return(new_image);
}


function rotateImage(rImage, link) {

var new_image = getNextImage();

document.getElementById('rImage').src = new_image.image_item.src;
document.getElementById('rLink').href = new_image.image_item.link;

setTimeout("rotateImage()", interval);
}



http://codebasic.net
AnswerRe: Random image link display, if hover should stop the image link... Pin
Marc Firth26-Apr-09 22:04
Marc Firth26-Apr-09 22:04 
GeneralPhoto Film Frame Around Table Cells Pin
Brady Kelly26-Apr-09 1:18
Brady Kelly26-Apr-09 1:18 
GeneralRe: Photo Film Frame Around Table Cells Pin
Marc Firth27-Apr-09 22:20
Marc Firth27-Apr-09 22:20 
QuestionJavaScript onkeypress Log to File Pin
Nikyoro25-Apr-09 8:33
Nikyoro25-Apr-09 8:33 
AnswerRe: JavaScript onkeypress Log to File Pin
Yusuf25-Apr-09 9:40
Yusuf25-Apr-09 9:40 
AnswerRe: JavaScript onkeypress Log to File Pin
Aman Bhullar27-Apr-09 23:32
Aman Bhullar27-Apr-09 23:32 
AnswerRe: JavaScript onkeypress Log to File Pin
saanj28-Apr-09 21:34
saanj28-Apr-09 21:34 
Questionalt property in img tag Pin
Brendan Vogt25-Apr-09 4:46
Brendan Vogt25-Apr-09 4:46 
AnswerRe: alt property in img tag Pin
Yusuf25-Apr-09 9:43
Yusuf25-Apr-09 9:43 
AnswerRe: alt property in img tag Pin
Brendan Vogt25-Apr-09 22:58
Brendan Vogt25-Apr-09 22:58 
AnswerRe: alt property in img tag Pin
Marc Firth26-Apr-09 22:30
Marc Firth26-Apr-09 22:30 
QuestionUsing Paypal Pin
Mohammad A Gdeisat25-Apr-09 4:30
Mohammad A Gdeisat25-Apr-09 4:30 
AnswerRe: Using Paypal Pin
Yusuf25-Apr-09 9:44
Yusuf25-Apr-09 9:44 
AnswerRe: Using Paypal Pin
SayreCC26-Apr-09 18:00
SayreCC26-Apr-09 18:00 
AnswerRe: Using Paypal Pin
Marc Firth26-Apr-09 22:26
Marc Firth26-Apr-09 22:26 
QuestionHtml-iFrame-Javascript Pin
LordLothar25-Apr-09 4:06
LordLothar25-Apr-09 4:06 
AnswerRe: Html-iFrame-Javascript Pin
Yusuf25-Apr-09 9:47
Yusuf25-Apr-09 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.