Click here to Skip to main content
11,430,708 members (76,960 online)

Web Development

 
GeneralRe: Form submit error message Pin
Tichaona J26-May-13 8:37
memberTichaona J26-May-13 8:37 
GeneralRe: Form submit error message Pin
David Kroj27-May-13 0:54
memberDavid Kroj27-May-13 0:54 
Questioncrystal reports not working for visual studio 2010 Pin
Member 999911226-Apr-13 8:05
memberMember 999911226-Apr-13 8:05 
AnswerRe: crystal reports not working for visual studio 2010 Pin
Sandeep Mewara26-Apr-13 8:33
mvpSandeep Mewara26-Apr-13 8:33 
GeneralRe: crystal reports not working for visual studio 2010 Pin
Member 999911226-Apr-13 8:35
memberMember 999911226-Apr-13 8:35 
QuestionGMail SMTP Outgoing Problem Pin
Ishaan Karnik25-Apr-13 4:58
memberIshaan Karnik25-Apr-13 4:58 
AnswerRe: GMail SMTP Outgoing Problem Pin
Bernhard Hiller26-Apr-13 1:36
professionalBernhard Hiller26-Apr-13 1:36 
GeneralRe: GMail SMTP Outgoing Problem Pin
Ishaan Karnik30-Apr-13 4:09
memberIshaan Karnik30-Apr-13 4:09 
AnswerRe: GMail SMTP Outgoing Problem Pin
Richard MacCutchan30-Apr-13 7:29
mvpRichard MacCutchan30-Apr-13 7:29 
QuestionGetting Error while transferring records from one database to other using web application [modified] Pin
Parag Raibagkar22-Apr-13 21:13
memberParag Raibagkar22-Apr-13 21:13 
AnswerRe: Getting Error while transferring records from one database to other using web application Pin
Sandeep Mewara22-Apr-13 23:43
mvpSandeep Mewara22-Apr-13 23:43 
QuestionDisplaying data in chart with import csv file to database sql Pin
Dhimas Yuli PW22-Apr-13 17:34
memberDhimas Yuli PW22-Apr-13 17:34 
AnswerRe: Displaying data in chart with import csv file to database sql Pin
Jasmine250123-Apr-13 9:18
memberJasmine250123-Apr-13 9:18 
QuestionHelp trying to set a 12 hour cookie for a DHTML popup Pin
Member 1000506922-Apr-13 6:36
memberMember 1000506922-Apr-13 6:36 
Basically I need this DHTML popup to show once per 12 hours for the visiting user. I can't seem to figure it out...

This is in the <head> code for the pop:

<script type="text/javascript">
var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
 
function iecompattest(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
 
function drag_drop(e){
if (ie5&&dragapproved&&event.button==1){
document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+e.clientY-offsety+"px"
}
}
 
function initializedrag(e){
offsetx=ie5? event.clientX : e.clientX
offsety=ie5? event.clientY : e.clientY
document.getElementById("dwindowcontent").style.display="none" //extra
tempx=parseInt(document.getElementById("dwindow").style.left)
tempy=parseInt(document.getElementById("dwindow").style.top)
 
dragapproved=true
document.getElementById("dwindow").onmousemove=drag_drop
}
 
function loadwindow(url,width,height){
if (!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{
document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"px"
document.getElementById("dwindow").style.height=initialheight=height+"px"
document.getElementById("dwindow").style.left="30px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
document.getElementById("cframe").src=url
}
}
 
function maximize(){
if (minrestore==0){
minrestore=1 //maximize window
document.getElementById("maxname").setAttribute("src","<TMPL_VAR site_url>/images/restore.gif")
document.getElementById("dwindow").style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
document.getElementById("dwindow").style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
}
else{
minrestore=0 //restore window
document.getElementById("maxname").setAttribute("src","<TMPL_VAR site_url>/images/max.gif")
document.getElementById("dwindow").style.width=initialwidth
document.getElementById("dwindow").style.height=initialheight
}
document.getElementById("dwindow").style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
}
 
function closeit(){
document.getElementById("dwindow").style.display="none"
}
 
function stopdrag(){
dragapproved=false;
document.getElementById("dwindow").onmousemove=null;
document.getElementById("dwindowcontent").style.display="" //extra
}
 
</script>
 

and this in the main body of the page

<SCRIPT LANGUAGE="JavaScript">
if (window != top) top.location.href = location.href;
</SCRIPT>
<div id="dwindow" style="position:absolute;background-color:#EBEBEB;cursor:hand;left:0px;top:0px;display:none" onMousedown="initializedrag(event)" onMouseup="stopdrag()" onSelectStart="return false">
<div align="right" style="background-color:navy"><font size="1" color="white">Loading ad....Please wait a few seconds or close the ad....</font><img src="<TMPL_VAR site_url>/images/close.gif" id="page_effect" onClick="closeit()"></div>
<div id="dwindowcontent" style="height:100%">
<iframe id="cframe" src="" width="100%" height="100%"></iframe>
</div>
</div>
<script>
 
if (ns6) window.onload=new Function('loadwindow("http://AdURLhere.com",900,900)')
else
loadwindow("http://AdURLhere.com",900,900)
</script>
<script type="text/javascript">
 
$(document).ready(function(){
 
	$('#page_effect').fadeIn(80000);
 
});
 
</script>

Any help would be appreciated. thanks
QuestionCheckbox check should automatically and slowly fadeout to unchecked Pin
Member 937599314-Apr-13 8:57
memberMember 937599314-Apr-13 8:57 
AnswerRe: Checkbox check should automatically and slowly fadeout to unchecked Pin
Martin-FFB15-Apr-13 0:32
memberMartin-FFB15-Apr-13 0:32 
AnswerRe: Checkbox check should automatically and slowly fadeout to unchecked Pin
Jasmine250122-Apr-13 12:11
memberJasmine250122-Apr-13 12:11 
QuestionWebsite conversion Pin
Onose13-Apr-13 5:27
memberOnose13-Apr-13 5:27 
AnswerRe: Website conversion Pin
Martin-FFB15-Apr-13 0:35
memberMartin-FFB15-Apr-13 0:35 
QuestionHelp with project. JavaScript • CSS • SVG • HTML Pin
mamouch32013-Apr-13 3:36
membermamouch32013-Apr-13 3:36 
QuestionRails Facebook Login Plug-in keeps timing out Pin
SimonHerd13-Apr-13 1:48
memberSimonHerd13-Apr-13 1:48 
Questionhide printer dialog box in javascript Pin
SumairaR11-Apr-13 2:03
memberSumairaR11-Apr-13 2:03 
AnswerRe: hide printer dialog box in javascript Pin
dusty_dex11-Apr-13 3:22
memberdusty_dex11-Apr-13 3:22 
AnswerRe: hide printer dialog box in javascript Pin
mic2114-May-13 2:38
membermic2114-May-13 2:38 
Questionlynda.com php-with-mysql-essential-training problem Pin
Tanveer Jony11-Apr-13 1:14
memberTanveer Jony11-Apr-13 1:14 
AnswerRe: lynda.com php-with-mysql-essential-training problem Pin
Richard MacCutchan11-Apr-13 1:54
mvpRichard MacCutchan11-Apr-13 1:54 
AnswerRe: lynda.com php-with-mysql-essential-training problem Pin
enhzflep12-Apr-13 1:39
memberenhzflep12-Apr-13 1:39 
QuestionPHP Form fails ... Pin
crob0910-Apr-13 15:40
membercrob0910-Apr-13 15:40 
QuestionStrange one [modified] Pin
John Simmons / outlaw programmer10-Apr-13 14:11
memberJohn Simmons / outlaw programmer10-Apr-13 14:11 
AnswerRe: Strange one Pin
dusty_dex11-Apr-13 1:59
memberdusty_dex11-Apr-13 1:59 
GeneralRe: Strange one Pin
John Simmons / outlaw programmer11-Apr-13 4:46
memberJohn Simmons / outlaw programmer11-Apr-13 4:46 
GeneralRe: Strange one Pin
dusty_dex11-Apr-13 4:51
memberdusty_dex11-Apr-13 4:51 
Questionmvc3 razor Pin
pooja_verma9-Apr-13 3:11
memberpooja_verma9-Apr-13 3:11 
AnswerRe: mvc3 razor Pin
frazzle-me9-Apr-13 3:57
professionalfrazzle-me9-Apr-13 3:57 
QuestionShow a doc or pdf file content in a PHP page Pin
Member 99294785-Apr-13 3:28
memberMember 99294785-Apr-13 3:28 
QuestionImage Save As from webpage using IE7 Pin
Andrew Hoole5-Apr-13 1:51
memberAndrew Hoole5-Apr-13 1:51 
QuestionBest Way to Put Large Video File on Web site [modified] Pin
swissivan4-Apr-13 18:40
memberswissivan4-Apr-13 18:40 
AnswerRe: Best Way to Put Large Video File on Web site Pin
AContractor5-Apr-13 3:06
professionalAContractor5-Apr-13 3:06 
GeneralRe: Best Way to Put Large Video File on Web site Pin
swissivan7-Apr-13 16:13
memberswissivan7-Apr-13 16:13 
AnswerRe: Best Way to Put Large Video File on Web site Pin
dusty_dex5-Apr-13 5:27
memberdusty_dex5-Apr-13 5:27 
GeneralRe: Best Way to Put Large Video File on Web site Pin
swissivan7-Apr-13 16:16
memberswissivan7-Apr-13 16:16 
GeneralRe: Best Way to Put Large Video File on Web site Pin
dusty_dex7-Apr-13 22:32
memberdusty_dex7-Apr-13 22:32 
GeneralRe: Best Way to Put Large Video File on Web site Pin
swissivan7-Apr-13 22:52
memberswissivan7-Apr-13 22:52 
QuestionWhat kind of web development to start with? Pin
mickytamayo4-Apr-13 10:45
membermickytamayo4-Apr-13 10:45 
AnswerRe: What kind of web development to start with? Pin
Dennis E White4-Apr-13 11:13
memberDennis E White4-Apr-13 11:13 
QuestionBootMetro Pin
Cesar Bretana Glez3-Apr-13 11:03
memberCesar Bretana Glez3-Apr-13 11:03 
QuestionHow can I invoke web-service if I have wsdl file without generating stubs java classes? Pin
dungSoft1232-Apr-13 3:51
groupdungSoft1232-Apr-13 3:51 
AnswerRe: How can I invoke web-service if I have wsdl file without generating stubs java classes? Pin
Member 99599682-Apr-13 5:53
memberMember 99599682-Apr-13 5:53 
GeneralRe: How can I invoke web-service if I have wsdl file without generating stubs java classes? Pin
David Kroj10-Jun-13 3:01
memberDavid Kroj10-Jun-13 3:01 
QuestionAny HTML5 API for ASP.NET website available? Pin
kmax0128-Mar-13 4:45
memberkmax0128-Mar-13 4:45 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150428.2 | Last Updated 3 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid