Tuesday, May 27, 2008

I have a page of ASP code that generates a page with the following:

script type= text/javascript >
var ScrW = screen.width
var ScrH = screen.height
var Left=(Math.random()*ScrW);
var Top=(Math.random()*ScrH);
</script><style type= text/css >
#Layer1{
width: 0px;
position: absolute;
z-index:0;
left: Top px;
top: Left px;
}
#Layer1:hover{
width: auto;
z-index: 1;
}
#Pic1{
width: 50px;
}
#Pic1:hover {
width: auto;
}

My problem is the left and top values- the values generated by the code:

var Left=(Math.random()*ScrW);
var Top=(Math.random()*ScrH);

are what I want for the left and top values.

this is an ASP generated page!

any ideas?
This is some really great code for an E-commerce site a correct answer gets it for free!
Exactly!- any idea how to do that?
The complete code splatters the screen with product thumbnails and it regenerates to match the screen size. As you hover on a thumbnail it blooms to a full size image in the foreground. If you click the image it takes you to a detail page. user does not have to wait for entire page to load- although it doesn t take long. Side benefit all your product images are preloaded. Each time the page is regenerated the thumbnails are randomly placed.
Sounds like it might work Nisovin- Thx I ll get back!

I tried to download 4OD onto my computer but once it gets to the end of setup this flashes up:

‘Error 1904.Module

C:\windows\system32\macromed\flash\flash9d.ocx failed to register. HRESULT â€"2147220473. Contact your support personnel.’

Then I click ok because it’s the only option and this comes up :

‘Error 2739.Could not access Javascript run time for custom action’


I went onto another website for help before this and I went through this step by step guide


‘1. On the Start menu- click All Programs.
2. Click Accessories.
3. Right-click Command Prompt and choose Run as administrator from the
shortcut menu.
4. When the User Account Control dialog appears- click Continue.
5. At the command prompt type the following:
regsvr32 vbscript.dll
6. Press Enter on your keyboard.
7. A message should appear stating "DllRegisterServer in vbscript.dll
succeeded."
8. Click OK’


However step 7 didn’t work- instead I got a message saying:
**

However step 7 didn’t work- instead I got a message saying:

‘The module “vbscript.dll” was loaded but the call to DIIRegisterServer failed with the error code 0x80004005

For more information about this problem search online using the error code as a search term.‘

My computer is only around a month old so I don t really know whats wrong with it.

i use internet explorer

how can i write an asp/html program that does following:

When we roll over our mouse over the text "Roll your mouse over my text"- it should change to "Wow that feels good!!!" with font color red.
Please help me. i d be very thankful if the program ll not use javascript and if the program need javascript in any way- then only give my ur program in javascript or any other script. thank you

ok... i have a youtube account and the flash drive i was using was working perfectly fine but when my friend came over and i wanted to show him a video. it wouldn t let. it said my javascipt was either shut off or i needed to down load and install a newer version of adobe flash. my javascript is on and the screen says that the newer flash is completely installed but i still can t watch any of my playlist.

does anyone know a way i can find out what s wrong?

<script>
var Comp = Math.floor(Math.random()*100)+1;
do
{
var Pick = prompt("Pick a number between 1 and 100.");
if (Comp<Pick){alert("Too High")
}else
if (Comp>Pick){alert("Too Low")
}else
if (Comp == Pick){alert("Alright! You win! It took you (count inserted here)times")}
}
while (comp=Pick);
</script>


Well help me out here. This is a basic javascript game. Well the part I am having trouble with is the counting part. I want to count all the inputs made into the prompt. And when that number is displayed I want it on the "Alright!... " alert section. If that is not possible how would I go about to display the number of inputs? document.write statement is what I am thinking.

No comments: