This is a more compact view of the "open ad" code on yahoo.
<pre>
<script language=javascript>
// these are the two links for opening and closing the ad
var lnk1='<a href="#" onclick="moveIt(Ƈ');return false">Open Ad</a>'
var lnk2='<a href="#" onclick="moveIt(Ɔ');return false">Close Ad</a>'
// these are the contents of the table, you can put anything in here
var ad1='CLOSED STATE'
var ad2='OPEN STATE'
// this function actually moves the DIV size
function moveIt(status)
{
var tout=0;
if(status == Ƈ')
{
lnkdiv.innerHTML=lnk2;
adstate.innerHTML=ad2;
if (document.all.addiv.style.pixelHeight<250)
{
document.all.addiv.style.pixelHeight=document.all.addiv.style.pixelHeight+5;
tout=setTimeout('moveIt('+status+')',1);
}
I want to have a script to open a popup on the right bottom of thescreen(like hotmail or yahoo).
I want to write a function that checkes every 10 seconds, if there are new messenges from a database , if CurrCount < NewCount , the check will be made. Can anyone point me in the right direction?
I'd like to write a HTML page which can help me directly log in my Yahoo!mail or Gmail account without typing user name and password. Basically, I want to set up a link, click it and pop up the Yahoo/Gmail page.
What technology is most appropriate for this kind of work?
My current solution is not so satisfying: I download Yahoo!Mail page and save it to local file; then using Javascript to load that file and set up user name, password, submit it to Yahoo.
This works with Yahoo, but not Gmail. I haven't got time to investigate why.
The thing I hate about this solution is: for every email provider, I need to download their page and write corresponding page to access/modify it.
i'm using IE 6.0.2800 and in the last month no matter which site on the net each link to a javascript window opens up and crash a sec after its not the pop-up blocker i checked this out already.
this function should open a popup showing an image automatically adjusting browser window's height and width. It works fine with IE6 but not with IE7. In IE7 opens popup too small. why ? Code:
I would like to include text from an external file in my html file. This is normally done with <object> or <iframe> but in this case the style sheet and internal links (like <a href="#positiononpage">) do not work. So I thought of writing a little script which does the following
- open the file http://something.com/textfile.htm - put the content of that file in variable "var" - document.write(var)
Is this possible? (also without using activeX objects)
<script language="JavaScript"> function link () { msgWindow=window.open('http://anylink/index.html','link','border=0,directories=no,height="100%",left=1,location=no,menubar=0,resizable=yes,scrollbars=yes,status=yes,toolbar=no,top=1,width="100%"');} </script>
<a href="javascript: link ()">any link</a>
The situation is: in Win2000 open OK in respect to the width & height referer in script. But on WinXP, this link open on a litle window.
In Yahoo mail, I click the Inbox link and see my messages. If I view source, I don't have HTML which contains the URL of each message. The source HTML contains javascripting and framesets. This is different from what I am seeing.
If I right click on a message link and select "copy shortcut", I can paste this link into my browser. This brings me to my message. If I view source, once again, it is javascript and framesets. How do I get at the HTML that is making all the tables and contains the images I'm seeing?
Accessing IE DOM is a possibility but won't that just give me access to the javascripting and framsets since that is all the client has (remember what is seen in view souce)? I know the HTML has to be accessible somehow. Otherise, you wouldn't see it...right?
I have a form that I would like to get the values entered on the page and go to a new page in the same window. I can make the code work to open a new window, but I need it to open in the same window. Here is what I have:
I would like to have a page on my site containing links to external URLs. When I click on these links, a new window should open with the new URL and some text formatting javascript (or other language) code be applied to it. This would be like loading a new URL and then apply a bookmarklet to it. But I want to be able to do both in one shot. you click on the link, open a new window, and apply the code to the URL. Also, when you open the new window, the location bar should show the external URL, not mine. It doesn't have to necessarily be done with Javascript.
What I want to be able to do is to display this div with Lightbox but do it from JavaScript. For example, from the body onLoad event I would like to call a JavaScript function that opens a Lightbox.
Then, the Lightbox is going to contain a few fields so I was going to have JavaScript validate that the user entered all the fields. If they did, I then want to close the Lightbox. If they did not, I will display an alert message. I can get all of this to work except having JavaScript close (actually, it is hiding) a Lightbox div. Can someone help me figure out how to hide the div from a JavaScript function?
What I downloaded was Lightbox Gone Wild which I think is also called Leightbox.
Not sure whether this is possible but what i want is to add an "Send To A Friend" button, but i want the button to send an email to an address (Specified by user) from my personal Hotmail or Yahoo account instead of starting the users default email client.
I'm building a web site ala autos.yahoo.com on servicos.mpl.pt/comparador/css1.php I have a sidebar with filtering options grouped in an accordion. The accordion panels get populated via jquery like:
Yahoo mail uses a button that has two functions. If you click on the major portion it will launch your search. If you click on the image that is on the right of the button ( a triangle pointing downward) it will popup a little div menu.
If you've played around with Yahoo's new Beat email interface you'll notice that they now have adjustable columns to reveal the from, subject, date, size information. This is also found in Outlook and all windows OS. Placing your cursor between two columns allows you to move a column left or right to reveal content of each row.
Does anyone know how this is done? I have not seen it anywhere else on the internet, but in Yahoo's beta email.
There are tons of lightbox apps out there, but none that I could find that use YUI. I'm sure there are lots of developers out there already using YUI and don't want to have to use another library such as jQuery to get lightbox functionality. I have two demos available from the link below and you can download a zip file of the complete application including the YUI files needed.
Supports 3 modes (LightBox, Overlay and Remote), but many many more configurations...
how the yahoo ad serving script can be used to serve up ads up using JavaScript that isn't inline? I've attempted several things but it just seems like its impossible to do. Essentially, I would like to swap out a new round of ads per AJAX request. Any ideas? I've created a more friendly user interface for a site I'm working on but the thing is that the ads need to change every request since page refreshes are being eliminated. Otherwise, only a single impression may be tracked even though someone has visited essentially 100 pages, which is no good for the ad business.
Also, has anyone had success finding a way to delay the yield manager until the page has fully loaded? Sometimes the yahoo yield manager can take 10+ seconds resulting in a poor user experience and slow load time. Any ideas for that? Essentially, it would be nice to fully load the page than request the ads without using obtrusive JavaScript which seems to be the only way yahoo knows to do things.
Code: <a href="#" onclick="window.location='http://YourSite.com'">click here</a> I want to make it so that it opens a new normal browser window just like target=_blank does.
Is it possible to submit multiple links all at the same time using Javascript? I check all over the web and can't find any examples anywhere.
I would like to click on a button and submit to google, yahoo, msn, etc all at the same time. Like someone physically click on [url], [url], [url], so on.
how to hide all toolbars like yahoo,google etc onLoad. Actually window.open function cannot be taken into.I need the toolbars to be hidden in the beginning.
Is it possible to submit multiple links all at the same time using Javascript? I check all over the web and can't find any examples anywhere.
I would like to click on a button and submit to google, yahoo, msn, etc all at the same time. Like someone physically click on [url], [url], [url], so on.