Author Topic: [HTML/CSS] MyLazySundays Popup Window Script  (Read 104 times)

DeptNav

  • Administrator
  • Newbie
  • *****
  • Posts: 36
    • View Profile
[HTML/CSS] MyLazySundays Popup Window Script
« on: January 15, 2014, 08:27:12 am »
I got this from my friend Darren who posted it on Barrack-US's forum. NOTE: You must have a webs.com site for this to work.

He was bored and decided to mess around with some HTML. I was shocked to see My Lazy Sundays pop-up. It was completely accidental.

Okay, so what you need:

[ul type="disc"]
  • Text Document (Notepad/Text Editor)
  • Windows/Mac
  • Basic knowledge of HTML or CSS coding
  • A file directory path (basically saving the completed file to your desktop)
  • Patience
  • A HTML-editable website available (webs.com)
[/ul][div]
I've prepared a script, that enables you to have the pop-up appear randomly.


Code: [Select]
<html>
<body bgcolor="Black">

<p><center><h1>THIS IS THE HEADER, IGNORE IT</h1></center>
<center><font face="Bebas Neu" font color="Red" size="4">YOU CAN TYPE WHATEVER YOU WANT HERE</font></center></p>

<center><table>
<table border="1">

<tr><td>Try</td><td>This</td></tr>
<tr><td>Script</td><td>Free!</td></tr>

</table></center>

</body>
</html>
You're gunna have to copy and paste that basic little script into your Notepad or Text Editor and click Save As, then click Desktop and then go down to file extensions (drop down arrow with .txt in it) and click the drop down arrow and click All Files, then save the document as for example: my_lazy_sundays_popup.html

To create an accessible HTML file, you cannot have any special characters or spaces, only hyphens as you've acknowledged. Now, click Save and check your desktop. Open up the HTML encoded desktop icon and wallah!

BUT THAT'S NOT IT YET!

Now you need to go to your website and create your own custom HTML. Once you're in the custom HTML window, type in: <a href="my_lazy_sundays_popup.html">THE WRITING YOU WANT HERE</a>

Like I said, if your file name isn't my_lazy_sundays_popup.html then change the HREF to your file name.

Then, click it and VOILA!

If it doesn't open the first time, go up to your linkbar and you should see ''Popups Blocked'' , click it and enable the popups. Then click your HREF once more and the Scripted Pop-up will appear!
[/div]

Share on Facebook Share on Twitter