Click here to Skip to main content
15,885,546 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: videomail Pin
divyamistry27-Jan-09 21:29
professionaldivyamistry27-Jan-09 21:29 
AnswerRe: videomail Pin
Dave Kreskowiak28-Jan-09 7:24
mveDave Kreskowiak28-Jan-09 7:24 
QuestionWhat will happen if somebody do it ? Pin
Mohammad Dayyan27-Jan-09 0:22
Mohammad Dayyan27-Jan-09 0:22 
AnswerRe: What will happen if somebody do it ? Pin
N a v a n e e t h27-Jan-09 2:42
N a v a n e e t h27-Jan-09 2:42 
AnswerRe: What will happen if somebody do it ? Pin
Dave Kreskowiak28-Jan-09 7:23
mveDave Kreskowiak28-Jan-09 7:23 
QuestionHelp needed with webservice Pin
soniaiq26-Jan-09 23:14
soniaiq26-Jan-09 23:14 
AnswerRe: Help needed with webservice Pin
N a v a n e e t h27-Jan-09 2:44
N a v a n e e t h27-Jan-09 2:44 
QuestionJavascript Rollover is a rollover Pin
jumbojs26-Jan-09 15:23
jumbojs26-Jan-09 15:23 
I already started this in javascript so I don't want to use jquery but can some javascript expert look at my code and tell me what I'm doing wrong and or right? Let me tell you what I am trying to accomplish here. I have a menu that consists of four buttons and when you hover over them, they change color and then underneath a heading image is displayed when you hover over the heading, the button should go back to its original color, and then underneath the heading appears another image that contains some text. For the most part the code works ok except in Firefox sometimes the headings shift around and I am assuming that this is because when visible the text image doesn't exist, so the heading falls to where the text would be, I don't have this problem in IE. The biggest problem is the onmouseout. I don't want the original button to go back to the color right away because I need time to be able to roll over the heading to show the text, so I was trying to use a setTimeout function to pause for a few seconds but it didn't work.

window.onload = rollover;

function rollover()
{
	var images = document.getElementsByTagName("img"); // Get all the images in the document
	var roll = new RegExp("roll");
	var preload = [];
	var fileLoc = "images/rollovers/";
	for ( var i=0; i<images.length;>
	{
		if (images[i].id.match(roll)) // Loop through all the images in document and look for match on 'roll'
		{
			preload[i] = new Image();
			preload[i].src = fileLoc + images[i].id + "_over.gif"; // Preload the _overs into an array.
			images[i].onmouseover = function()  // Add a mouseover event to image
			{
				this.src = fileLoc + this.id + "_over.gif"; // When rolled over, this file now equals the _over image
				var currentButton = this.id; // Grab the id of the current image
				var imageHeader = document.getElementById("current_title"); //Grab all images that are titled 'current_title'
				var newHeaderImage = new Image();
				newHeaderImage.src = fileLoc + currentButton + "_header.gif"; // Create new image and store _Header image inside
				newHeaderImage.id = currentButton + "_header"; //New id for new image is file + headerId
				imageHeader.src = newHeaderImage.src;
				imageHeader.height = newHeaderImage.height; // Assign header image id to currect location
				imageHeader.width = newHeaderImage.width;
				imageHeader.style.visibility = "visible";
				imageHeader.onmouseover = function() // Attach mouse event for header image
				{
					var imageText = document.getElementById("button_text");
					var newTextImage = new Image();
					newTextImage.src = fileLoc + currentButton + "_text.gif";
					imageText.src = newTextImage.src;
					imageText.height = newTextImage.height;
					imageText.width = newTextImage.width;
					imageText.style.visibility = "visible";
					
				}
				
				
			}
			//images[i].onmouseout = setTimeout(mouseOut(fileLoc, this.id),3000);
		}
	}
}

/*function mouseOut(fileLoc, curButton)
{
	var titleImg = document.getElementById("current_title");
	var imgButton = curButton;
	this.src = fileLoc + imgButton + "_org.gif";
	
	titleImg.style.visibility = "hidden";
}*/

QuestionAccess excel on a server via internet Pin
soniabvc26-Jan-09 14:17
soniabvc26-Jan-09 14:17 
AnswerRe: Access excel on a server via internet Pin
Paddy Boyd26-Jan-09 23:33
Paddy Boyd26-Jan-09 23:33 
GeneralRe: Access excel on a server via internet Pin
soniabvc27-Jan-09 4:47
soniabvc27-Jan-09 4:47 
AnswerRe: Access excel on a server via internet Pin
Ranjit Viswakumar29-Jan-09 14:22
Ranjit Viswakumar29-Jan-09 14:22 
QuestionI need your comments about Vevocart Pin
hifiger200426-Jan-09 14:11
hifiger200426-Jan-09 14:11 
AnswerRe: I need your comments about Vevocart Pin
Drew Stainton26-Jan-09 15:46
Drew Stainton26-Jan-09 15:46 
QuestionImages Shift In Slideshow Pin
Channel8426-Jan-09 11:01
Channel8426-Jan-09 11:01 
AnswerRe: Images Shift In Slideshow Pin
Mohammad Dayyan27-Jan-09 0:12
Mohammad Dayyan27-Jan-09 0:12 
GeneralRe: Images Shift In Slideshow Pin
Channel8427-Jan-09 4:47
Channel8427-Jan-09 4:47 
Questionauto generate pages Pin
dsaroop26-Jan-09 4:02
dsaroop26-Jan-09 4:02 
QuestionRe: auto generate pages Pin
led mike26-Jan-09 5:06
led mike26-Jan-09 5:06 
AnswerRe: auto generate pages Pin
dsaroop26-Jan-09 5:27
dsaroop26-Jan-09 5:27 
GeneralRe: auto generate pages Pin
led mike26-Jan-09 6:30
led mike26-Jan-09 6:30 
GeneralRe: auto generate pages Pin
dsaroop26-Jan-09 7:05
dsaroop26-Jan-09 7:05 
QuestionRe: auto generate pages Pin
led mike26-Jan-09 8:28
led mike26-Jan-09 8:28 
AnswerRe: auto generate pages Pin
dsaroop26-Jan-09 8:31
dsaroop26-Jan-09 8:31 
AnswerRe: auto generate pages Pin
Paddy Boyd26-Jan-09 6:05
Paddy Boyd26-Jan-09 6:05 

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.