Click here to Skip to main content
15,890,282 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Firefox Dropdown Menu Problem Pin
dragon1011318-Aug-08 9:41
dragon1011318-Aug-08 9:41 
GeneralRe: Firefox Dropdown Menu Problem Pin
Shog918-Aug-08 9:53
sitebuilderShog918-Aug-08 9:53 
QuestionHTTPWebRequest Pin
Aleemulhaq17-Aug-08 22:59
Aleemulhaq17-Aug-08 22:59 
GeneralRe: HTTPWebRequest Pin
Perspx18-Aug-08 3:58
Perspx18-Aug-08 3:58 
Questionajaxcontrolltoolkit is not working Pin
DeepakRohilla1317-Aug-08 11:45
professionalDeepakRohilla1317-Aug-08 11:45 
AnswerRe: ajaxcontrolltoolkit is not working PinPopular
NeverHeardOfMe17-Aug-08 12:59
NeverHeardOfMe17-Aug-08 12:59 
AnswerThe universal two-step solution Pin
Shog917-Aug-08 15:55
sitebuilderShog917-Aug-08 15:55 
Questionhelp with img rollovers [modified] Pin
jumbojs17-Aug-08 9:19
jumbojs17-Aug-08 9:19 
Ok, I am trying to do this in javascript. Let me try to tell you what I want to do. I have a nav with 5 buttons(images). I want to be able to hover over a nav button, say nav1, have that change to newNav1 (a color version of the same image) while having another image underneath, img3(which right now is plain), change to img4(becomes a heading), then when you click on img4, you get img5(a description). Then when you move your mouse away from img5, you go back to the beginning. The code that I have included works except it doesn't go back to the beginning when you move your mouse away from img5. It will go back as long as you only hover over one button but if you hover over say nav1 and then move over to nav2, instead of getting the orginal image, you'll get the images that resulted from hovering over nav1.

thanks

//img is the first original red img and rolloverURL is the first color image that
//I want to change to
//over heading is the image I want the underneath img to change to first
//and overContent is the img I want the underneath img to change to last.
function addRollover(img, rolloverURL, overHeading, overContent) 
{
        var id = img;
        var contentBase = document.content.src;
        
 
        img = document.images[id];
        
        var baseUrl = img.src;
        
        (new Image()).src = rolloverURL;
        (new Image()).src = overHeading;
        (new Image()).src = overContent;
        
img.src = rolloverURL;
document.content.src = overHeading;
document.content.onclick = function () { document.content.src = overContent;}
img.onmouseout = function() { img.src = baseUrl; }
document.content.onmouseout = function () { document.content.src = contentBase;}
}


modified on Sunday, August 17, 2008 7:17 PM

QuestionSample ASP.Net Application Pin
farrukhj16-Aug-08 22:28
farrukhj16-Aug-08 22:28 
AnswerRe: Sample ASP.Net Application Pin
Yusuf16-Aug-08 23:47
Yusuf16-Aug-08 23:47 
QuestionCreating Animations Pin
BRIMID16-Aug-08 13:45
BRIMID16-Aug-08 13:45 
AnswerRe: Creating Animations Pin
Shog916-Aug-08 16:27
sitebuilderShog916-Aug-08 16:27 
QuestionSending a form to your email address Pin
Christopher Clarke16-Aug-08 11:34
Christopher Clarke16-Aug-08 11:34 
AnswerRe: Sending a form to your email address Pin
Manas Bhardwaj16-Aug-08 11:52
professionalManas Bhardwaj16-Aug-08 11:52 
QuestionRe: Sending a form to your email address Pin
Christopher Clarke16-Aug-08 12:02
Christopher Clarke16-Aug-08 12:02 
AnswerRe: Sending a form to your email address Pin
Manas Bhardwaj17-Aug-08 0:16
professionalManas Bhardwaj17-Aug-08 0:16 
GeneralRe: Sending a form to your email address Pin
Christopher Clarke17-Aug-08 12:42
Christopher Clarke17-Aug-08 12:42 
GeneralRe: Sending a form to your email address Pin
wizard 20220-Aug-08 17:46
wizard 20220-Aug-08 17:46 
AnswerRe: Sending a form to your email address Pin
naresh thakur4-Sep-08 3:13
naresh thakur4-Sep-08 3:13 
QuestionCultureInfo - Arabic Currency formatting Pin
Blumen16-Aug-08 0:06
Blumen16-Aug-08 0:06 
AnswerRe: CultureInfo - Arabic Currency formatting [modified] Pin
Jörgen Andersson16-Aug-08 10:42
professionalJörgen Andersson16-Aug-08 10:42 
GeneralRe: CultureInfo - Arabic Currency formatting Pin
Blumen16-Aug-08 18:27
Blumen16-Aug-08 18:27 
QuestionJavaScript change individual characters to upper case Pin
jonatec15-Aug-08 0:04
jonatec15-Aug-08 0:04 
AnswerRe: JavaScript change individual characters to upper case Pin
astanton197815-Aug-08 7:29
astanton197815-Aug-08 7:29 
GeneralRe: JavaScript change individual characters to upper case Pin
Perspx15-Aug-08 10:58
Perspx15-Aug-08 10:58 

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.