|
Over the past few months, I've noticed that animated ads on lots of sites don't load and start playing until I scroll down to them.
Is this something that's being coded into the page, or is it a feature of the latest browsers to not load them until they are needed?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello,
I need to develop the theme for ASP.NET MVC 3 application.
Can you please suggest me the approach?
1. Should i go for bunch of style classes and load them dynamically.?
Is there any better approach which lets me to use single style class and allow me to load images dynamically.
Please suggest.
Thanks,
Rahul
|
|
|
|
|
|
Good Day All
i have a page, i am it is getting the background from an image.
<html>
<head>
<style>
img.bg {
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}
@media screen and (max-width: 1024px) {
img.bg {
left: 50%;
margin-left: -512px;
}
}
#page-wrap
{
position: relative;
width: 400px;
margin: 50px auto;
padding: 20px;
background: white;
-moz-box-shadow: 0 0 20px black;
-webkit-box-shadow: 0 0 20px black;
box-shadow: 0 0 20px black;
}
p
{
font: 15px/2 Georgia, Serif;
margin: 0 0 30px 0;
text-indent: 40px;
}
</style>
</head>
<body>
<img src="http://196.41.221.20:8095/EcashPos/images/MainBackground.jpg" class="bg">
</body>
</html>
in Firefox this is fine, but in IE it only fills a portion of the page. i have attached the example document, or you can use this one.
i am using IE9
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Why not do this via CSS?
It is much easier to control and edit.
Something like this:
body
{
background-image:url('MyImage.png');
background-repeat:no-repeat;
background-position:right top;
}
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Which is your choice and why?
I've been using EasyPHP for some time and it works well.
Never tried XAMPP though...
|
|
|
|
|
I use XAMPP myself. Simply as a result of not having heard of EasyPHP before.
For brevity, I'll abbreviate XAMPP to x* and WAMPP to w*
I do seem to recall that x* had replaced the 'old' w*, though am unable to find (in about 90 seconds) any concrete evidence of this being true, merely a few other people that had the same assumption.
I will note however, that my code written and functioning under x* in windows will run just fine under linux, so long as there are not calls to COM objects and that silly mistakes are not made with file-naming/handling conventions.
The same cannot be said for my w* code, which would invariably fail when used in x*. I'd suppose for a lack of packages, though I do recall having trouble when writing a pdf creation module, as some of the w* files were older than the same files in the x* distro - result: "No PDF you you!"
I might add, it's been at least 18 months since I investigated either. A lot can change in a year and a half.
|
|
|
|
|
I am having Iframe on defaultone.aspx page
from tht page i am called defaulttwo.aspx page. on that page their is master page call(defaultmaster.master ).
iWant to get that master page object in java script of Defaultone.aspx page.
How i will get tht??
modified on Monday, June 27, 2011 8:43 AM
|
|
|
|
|
First of all, don't use very urgent in your post. This is a volunteer site and people will answer you on their time, not yours.
Once the pages are rendered to the client their is no page or masterpage, just elements. Use the parent object from the iframe.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hey...thnks for the reply.
I tried in different way but no use
on that master page i have control.. on tht control there is label. i want to disable tht label
from ifare call page
script language="javascript" type="text/javascript">
function setIframeHeight(iframeName) {
debugger;
var s = document.getElementById(iframeName).contentWindow.document;
var t = document.frames("iFrame").document.firstChild.childNodes[1].document.getElementsByTagName("MasterPlaceHolder");
var test = document.frames("iFrame").document.getElementId('MasterPlaceHolder');
var p = s.document.getElementById("ucModel1");
}
</script>
iFrame.Attributes.Add("onload", "setIframeHeight('iFrame');");
|
|
|
|
|
First, format your code with the PRE tags.
As far as accessing your Label control, you can use something like this:
var label = document.getElementById('<%Label1.ClientID%>');
label.disabled = true;
|
|
|
|
|
Hey, I am trying to add some text to an image using any language(web development). I'm not very good with web development, so I really don't know which language to use. So far, I have a template, and all I need to do is add some text in some coordinates. The only problem is, is that I've looked all over the internet, and all I've seen is putting text OVER the image. I am trying to add text to the actual image, so they can then save the picture to their computer with the text. Thanks for any help, Hetelek.
modified on Friday, June 24, 2011 2:34 PM
|
|
|
|
|
|
I'm trying to put the text PART of the image. Not over it :/
|
|
|
|
|
|
That is exactly what I am looking for, but with web programming, not ASP.NET unfortunately.
|
|
|
|
|
Then in which one do you want? javascript?
|
|
|
|
|
Anything that can complete my request
|
|
|
|
|
Actually I want know that your website is static or dynamic? what things you are using to develop your website? Because already I gave you solution in ASP.NET but you don't want that because you are not using ASP.NET, so tell me clearly.
|
|
|
|
|
Just use php then. Solved. You will not complete this task without the help of an active server (i.e a server that executes scripts/native code) - one that does more than merely fetch and transmit html pages.
Hence the suggestion for ASP.NET, being that this is a Microsoft-centric site and all
1. Open image
2. Render text
3. Save file with temporary name
4. Generate html page with link to newly created file
Two things to watch for:
1. Don't forget to clean out old temporary images.
2. Don' forget to put code into step 4 that to suggest to the browser what it should should call the file when the user tries to save it - this will prevent the user from getting file-names that look like md5 hash-codes, or anything else similarly illegible to normal, un-RainMan-like humans. - Or at least, it'll stop them getting files with the same name as the temporary one that you create on-the-fly for them.
Take a look at XAMPP($free), if you haven't already. One of the included examples generates flash (.swf) files on the fly from user entered data. Altering still-images was a snap last time I tried it.
|
|
|
|
|
|
He wants to actually draw the text on the image itself - not overlay it using html/css commands.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Try this article.
Render Text On A Bitmap (and other stuff)[^]
It shows you how to render text onto a bitmap.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Unfortunately, that is in C# I need it to be something on the web.
|
|
|
|
|
Web or desktop, it doesn't matter if you want to embed the text in the image itself.
Just create the image with the text written "on" it, then use that newly created image in the web page or return it to the browser in a stream if it was part of a separate request.
|
|
|
|