Make Pop Up Footer That Appears On Site With An Advert For A Book In It?
Feb 23, 2009
I remember a while back there was an article published on here explaining how to make the pop up footer that appears on the site with an advert for a book in it.
We are using FlowPlayer to display a video on our website page here. However the video appears very small in IE8 (like a thumbnail) and I cannot seem to work it out!
I have a query to do with windows media player. I am not sure whether what I want is done using JavaScript, but it is my best guess.
Basically, I was wondering how some websites have an advert clip or there logo appear before the actual video. The advert runs then it seems the player loads another movie.
how do i get it/what is the source code so when one java pop up appears when my page is visited another one appears over the top of it like in windows when they is 2 boxes but one overlaps the other one
I kinda stuck at this point on my php script, it has this javascript code and I stuck there:
Line 16: echo("<script language="JavaScript"> function openptc(tpge,pnme,w,h){ settings="width=" + w + ",height=" + h + ",scrollbars=yes,location=no,directories=no,status=1,menubar=no,toolbar=no,resizable=no"; window.open(tpge,pnme,settings); } //--> </script>");
Line 72: print "<td><a href="#" onClick="openptc('./paidtoclick.php?adid=$row[linkid]&action=start&".session_name()."=".session_id()."','PaidtoClickPage','640','480');"><b>Click Here To View</b></a><tr>";
I think those 2 lines actually are my problem. This code makes the site open in a new pop up window. how to make it open in a new tab.
Could someone tell me how to make this site: http://webpages.charter.net/jelsinge...e/history.html compatible with those who use the Internet with JavaScript disabled? I really want to have the slideshow but is there a way I can have the site look good if someone disables JavaScript?v
The problem is that I wanted to do a web page where you can choose the characteristics that you expect your dog to have and on the next page the pictures of the dog should be shown. I did a questionnaire where the visitor can fill in the attributes of his dream dog. This is done in a selection field. The different values should bring the dog breed that can be taken into consideration. Additionally there should be a box to tick if something is absolutely necessary.
I made the site for this as well, but I don’t really know how to work the part out. I hope someone can give me hint.
This is the part with the function. I only took one as an example:
i have to make a simple site for my sister and i am kind of a newbie at the whole web development thing am pretty ok with html tho. wo i was trying to make a slide show on the front page of the site, so i got a little help from a site called java script city,
var my_imgs_off = new Array(); var my_imgs_on = new Array(); /* Set "Off" image URLs */
I want to use an image map for something unique. The image would have about 10 to 15 (religious) symbols. When the user clicks on a particular symbol it will search the site for a few strings relating to that symbol. For example: Symbol 1 would be a cross when clicked it search the site for "christ, crucifix, christianity". I am sure I can make the image map but how do I make the image map call a function instead of a link.
I need to compare these array items to my site div id's and make an onblur functionality that changes the input field value.
It does not change the selected input field value(this.value). And it only alerts when blurring from the input field that is first in the array(id1). If i click to the input field id="id2" it does not alarm?
i want to make a iframe page that loading a page from other site. I have try "jQuery iFrame Sizing" to set auto height in iframe... but it is failed.
This is my code : ------------- on Head <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/iframe.js"></script> on Body
I was just wondering if anyone knows of a great javascript book to buy. I am looking for something super duper hard core. I would love it to have documentation galore that includes all of the AJAX and DOM and XML. You know... like a javascript BIBLE. Something thick and comforting. Something that makes you feel all warm and toasty inside just knowing that it is there. So if I start running into some problem I can just glance at the book and rest assured that if the problem exculates not to fear. I have .... THE BOOK.
Was there a sitepoint blog post or article that covered the methods used to implement the sitepoint.com home page book frame? (frame at btm of page with book promo)
I want to learn Javascript the right way, I'm not sure id I should buy the book or buy the online video for kevin? who tried both give me a recommendation.
I have been working with HTML for a few years and am now just getting comfortable with CSS, but I never got into JavaScript. I learn best by reading and following instructions and doing small projects that emphasize the concepts. Can anyone recommend a good book for a beginner at Javascript? Something that makes you practice?
I have still yet to see a JavaScript Editor that comes close toreading a good JS book, learing it and using it with a text editor.
Anyway, here my recipe for build successfull DHTML Applications:
If you want to support only M$ IE stop here and do the following: 1) Install blindfold 2) Repeat the phrase - I love my cage :p
Buy the Book: Buy O'Reilly's JavaScript The Definitive Guide ~ The best damn JS guide & reference period, end of story, finito
Get a good Text Editor with Syntax Highlighting support ~ Real programmers don't use WYSIWYG tools ~ You will never learn with these tools ~ Code is always inefficient ~ Apps to Use: ~ OSX - BBEdit - Powerful but no MDI support :( ~ Win32 - UltraEdit - Low cost, high power, competent yntax Highlighting ~ ^nix - Kate or KDevelop - Well written but needs KDE (big) ~ Does not work with OSX's X11 Client :[ - ('+' key doesn't work)
Browser Development Platform ~ Mozilla (1.3+) (FireFox release suggested) ~ Why Moz? ~ Mozilla based development works in: ~ IE 95% of the time ~ Konquorer (KDE/Apple...), Opera 99%+ of the time ~ Why not IE? ~ IE based development works in standards based browsers only 50% of the time ~ IE black hole methods (non standards based) causes people to ignore standards based DHTML objects, properties and methods. ~ Browser Support Baseline ~ IE 5.5sp2+ ~ This is the first (reasonably) stable version of IE for advanced JS coding. ~ When ever I experience weird bugs from users I have them them upgrade to IE5.5sp2+ and it goes away. ~ Netscape 6.n+ ~ Netscape 4.7 should not be supported! ~ Opera ? (I plead ignorance here) ~ Konquorer/Safari ? (I plead ignorance here)
Debugging Methodology: ~ Use JS Console (Moz) ~ Put try/catches at all error prone functions / methods ~ Because of IE's error stupidity, you should get as close to the source as possible. ~ Read stack property of error in Mozilla to read stack of error (powerful) ~ Install JavaScript Console Status in Mozilla ~ Use window.onerror handler ~ In IE, read arguments.callee.caller... to read stack ~ Goes only to last error throw point ! not error source point :[ ~ Note: at this time, there is no way to to get to the Error object in Mozilla from this handler. Therefore no stack in Moz. Use Try/Catch instead
Add the following code to every page: _w=window function getElem(s){return document.getElementById(s)} function getEvent(e){ return is.ie?_w.event:e }
Event Declaration ~ Avoid using inline javascript declarations (In HTML Tags) ~ Inline declarations is where you call a function or run code from the html elements definition (onclick="<RunSomeCode>") ~ This technique will not allow you to access the event argument in Mozilla... ~ Instead use getElem("<Element ID>").onclick=<function name> ~ Declare handlers like: function mySlickFunction(e){e=getEvent(e)... ~ This will ensure you always have Event Object ~ If you want to get fancy you could normalize the Event at getEvent() ~ Method Declaration ~ Declare <obj>.<meth>=function <obj_acro>_<event>(args){ ~ Example: myObj.smile=function MO_smile(args){... ~ Why? - When you build you're stack in the debug you get the method names!
Other Stuff: ~ Use JSON (www.json.org) as much as possible to nest data structures (for more complex programming). ~ JSON is fast (primitively supported), stable easy to read.
Could anybody else add to this list?
If people are interested, I can make a document and add other stuff like JS debugging libraries, Consoles and other slick JS Debugging stuff.
I have a login link that is supposed to open a modal and then direct the visitor to a submission form once they are logged in. Here's the link code: <a href="/resources/submit" class="login">Submit New</a> and the jquery based on an example in the ninja book:
When I put a path name in the href, the modal opens but then quickly closes itself and sends the visitor to the form. If I use href="#" the modal opens and stays open, but when the visitor submits the form they are returned to the page they were on rather than the submission form.
I keep setting this aside and coming back to it, thinking I'll understand what's gone wrong here, but I still don't. I'd like this modal to work for other links with different paths, so I don't want to code the redirect into the js - I want to be able to control it in the link itself.
My client currently has a Flash book reader on his site that provides a UI for reading a book.Each page of the book is a GIF, and there are hundreds of books available.Now, my client would like to change this reader, and I've convinced him to let me rebuild the reader in jQuery.The hiccup is that, for copyright reasons, the images of the pages in the book must not be downloadable or accessible in the source code.(In other words, there shouldn't be a way to steal the book other than taking a screenshot of every page.)I want the reader to be powered by jQuery, it is, by definition, in-browser.