Click here to Skip to main content
15,895,799 members
Home / Discussions / Web Development
   

Web Development

 
QuestionTop position of the web page [modified] Pin
KambojR19-Mar-08 21:51
KambojR19-Mar-08 21:51 
GeneralRe: Top position of the web page Pin
Guffa22-Mar-08 14:59
Guffa22-Mar-08 14:59 
GeneralJavascript -> Scrolling menu Pin
Jacob Dixon19-Mar-08 13:37
Jacob Dixon19-Mar-08 13:37 
GeneralRe: Javascript -> Scrolling menu Pin
Declan Bright20-Mar-08 2:09
Declan Bright20-Mar-08 2:09 
GeneralwebBrowser control embedded in page doesn't get body element Pin
keniagm19-Mar-08 11:49
keniagm19-Mar-08 11:49 
QuestionUsing Certificates with c# and ASP.NET Pin
sfog19-Mar-08 11:11
sfog19-Mar-08 11:11 
GeneralCross post - please ignore Pin
pmarfleet19-Mar-08 11:14
pmarfleet19-Mar-08 11:14 
QuestionHow do I add multiple images to an ASP page that transform from one image to another? Pin
PeterJohnson196919-Mar-08 5:31
PeterJohnson196919-Mar-08 5:31 
Hi,

I am a total nubie to web developing. I am trying to get two or more images overlayed and add transitions to them in order to display the next image. (i.e. wipe)I have the following code which is a total bodge but appears to do the job on a standard web form. But when I add the code to the ASP.NET project it doesn't recognise img1 as an object. Can anyone tell me how this should be done correctly??

Any help would be gratefully received.

<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>]]>


<html>

<head>
<title>Timer Demonstration</title>
<script type="text/javascript">


var garImages = new Array(2);
var gstartImage = "Images/Red-Rock-Canyon-(6).gif";
var gendImage = "Images/Red-Rock-Canyon-(7).gif";
var giDuration = 2;
function init() 
{
    // On Start up initialise the filter style
    div1.style.filter = "progid:DXImageTransform.Microsoft.Wheel(spokes=4)";
    runit();
}

function runit() 
{
	for (i = 1 ; i < 2 ; i++)
		setTimeout("start(" + i + ")", 5000);
}

function start(i) 
{
  obj = eval("div" + i);
  if (obj.filters.item(0).status==0)
  { 
    // use the obj as a dummy object just to trigger the onfilterchange() 
    // function so that it will repeat       
    obj.style.filter = "progid:DXImageTransform.Microsoft.Wheel(spokes=4)";
    img1.style.filter = "progid:DXImageTransform.Microsoft.Wheel(spokes=4)";
    
    if (obj.filterCount== 1)
	    obj.filterCount = 0;
    else
	    obj.filterCount = (obj.filterCount)*1 + 1.0;
	    
    if (img1.filterCount== 1)
	    img1.filterCount = 0;
    else
	    img1.filterCount = (obj.filterCount)*1 + 1.0;
        
    obj.filters.item(0).Apply();
    img1.filters.item(0).Apply();
    // compare the src image with the start image
    if (img1.src.indexOf(gstartImage) !=-1)
    {
        img1.src = gendImage;
    }
    else
    {
        img1.src = gstartImage;
    }
    img1.filters.item(0).Play(duration=giDuration);
    obj.filters.item(0).Play(duration=giDuration);
  }
}

function done(i) 
{
    // put pause in here
    setTimeout("start(" + i + ")", 5000);
}

</script>

</head>

<body onload="init()">

<div id="div1" filtercount="0" style="filter: progid:DXImageTransform.Microsoft.Wheel(spokes=4)" onfilterchange="done(1)">
<img id="img1" filtercount="0" src="Images/Red-Rock-Canyon-(6).gif" style="filter: progid:DXImageTransform.Microsoft.Wheel(spokes=4)" align="left"></img></div>

</body>
</html>

GeneralWeb services in vb Pin
WinCrs18-Mar-08 22:09
WinCrs18-Mar-08 22:09 
QuestionHow to fires F11 key automatically [modified] Pin
Vishnu Narayan Mishra18-Mar-08 21:55
Vishnu Narayan Mishra18-Mar-08 21:55 
AnswerRe: How to fires any keypress event ie. F11 Pin
Laddie18-Mar-08 23:38
Laddie18-Mar-08 23:38 
GeneralRe: How to fires any keypress event ie. F11 [modified] Pin
Vishnu Narayan Mishra19-Mar-08 0:06
Vishnu Narayan Mishra19-Mar-08 0:06 
GeneralRe: How to fires any keypress event ie. F11 Pin
Johnny ²19-Mar-08 1:04
Johnny ²19-Mar-08 1:04 
QuestionHttp 1.1 POST Method? Pin
AliAmjad18-Mar-08 10:25
AliAmjad18-Mar-08 10:25 
AnswerRe: Http 1.1 POST Method? Pin
Guffa22-Mar-08 15:01
Guffa22-Mar-08 15:01 
GeneralIIS - site renaming Pin
Yusuf18-Mar-08 9:55
Yusuf18-Mar-08 9:55 
GeneralRe: IIS - site renaming Pin
ram197424-Mar-08 19:26
ram197424-Mar-08 19:26 
QuestionGood CSS Books/ Websites Pin
Nic Rowan18-Mar-08 5:37
Nic Rowan18-Mar-08 5:37 
GeneralRe: Good CSS Books/ Websites Pin
lbothell18-Mar-08 10:18
lbothell18-Mar-08 10:18 
GeneralRe: Good CSS Books/ Websites Pin
Nic Rowan18-Mar-08 20:34
Nic Rowan18-Mar-08 20:34 
GeneralRe: Good CSS Books/ Websites Pin
Shog918-Mar-08 17:22
sitebuilderShog918-Mar-08 17:22 
GeneralRe: Good CSS Books/ Websites Pin
Nic Rowan18-Mar-08 20:40
Nic Rowan18-Mar-08 20:40 
GeneralRe: Good CSS Books/ Websites Pin
N a v a n e e t h18-Mar-08 21:02
N a v a n e e t h18-Mar-08 21:02 
Questionhow do i launch the asp.net site Pin
zeeShan anSari18-Mar-08 0:10
zeeShan anSari18-Mar-08 0:10 
AnswerRe: how do i launch the asp.net site Pin
Ashrith18-Mar-08 1:37
Ashrith18-Mar-08 1:37 

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.